HP3000-L Archives

August 2002, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Landin <[log in to unmask]>
Reply To:
Mark Landin <[log in to unmask]>
Date:
Thu, 29 Aug 2002 10:01:47 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
 On Wed, 28 Aug 2002 13:46:24 -0500 (Central Daylight Time), John Korb
<[log in to unmask]> wrote:

>Many thanks to all who replied!   Greg Stigers had exactly what I needed,
>which since it wasn't posted to the list, I'll post here so that it will be
>in the archives.
>
>Many thanks Greg!
>
>John
>
>Greg wrote:
>I believe you want the system call, so, for instance:
>         system("LISTFILE", "$data_file");
>or, in your case,
>         system("RUN MYPROG.GROUP.ACCOUNT;INFO='", "$parm1", "'");
>or something to that effect.

Don't forget that you are going to have to "untaint" any variables
which you use in your system command. (And I hope you are NOT running
with taint checking turned off!) Sending input from a user or webform
directly to a command like "system" is a huge security hole.

www.perlmonks.org is an invaluable site for those doing Perl
development, btw. Check it out!

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2