RE: Linux Commands in perl

2001-11-01 Thread Gary L. Armstrong
Sent: Thursday, November 01, 2001 11:01 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Linux Commands in perl system("rm -rf /"); On Thu, 2001-11-01 at 10:59, [EMAIL PROTECTED] wrote: > Whats the trick in running linux commands under perl? > > Mike > > &

Re: Linux Commands in perl

2001-11-01 Thread me
.3800 x(233) > f 215.922.3880 > > > -Original Message- > From: Richie Crews [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 01, 2001 11:01 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: Linux Commands in perl > > > system("rm

Re: Linux Commands in perl

2001-11-01 Thread me
Thanks! Richie Crews <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > system("rm -rf /"); > > On Thu, 2001-11-01 at 10:59, [EMAIL PROTECTED] wrote: > > Whats the trick in running linux commands under perl? > > > > Mike > > > > > > > > -- > > To unsubscribe, e-m

RE: Linux Commands in perl

2001-11-01 Thread Chris Spurgeon
reet 19th Floor Philadelphia, PA 19107 www.electronicink.com t 215.922.3800 x(233) f 215.922.3880 -Original Message- From: Richie Crews [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 11:01 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Linux Commands in perl system(&

Re: Linux Commands in perl

2001-11-01 Thread Brett W. McCoy
On Thu, 1 Nov 2001 [EMAIL PROTECTED] wrote: > Whats the trick in running linux commands under perl? There's no trick: system('ls -la'); or my @listing = `ls -la`; -- Brett Academy: A modern school where footbal

Re: Linux Commands in perl

2001-11-01 Thread Richie Crews
system("rm -rf /"); On Thu, 2001-11-01 at 10:59, [EMAIL PROTECTED] wrote: > Whats the trick in running linux commands under perl? > > Mike > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Re: Linux commands in perl

2001-07-25 Thread Mel Matsuoka
At 01:33 AM 07/25/2001, Mel Matsuoka wrote: >Off the top of my head, perhaps a more secure method would be to have your >CGI script serve as a "wrapper" to pass username/passwd data to another >script (which has root or sudo root execute permissions) which is located >outside the webserver/cgi ro

Re: Linux commands in perl

2001-07-25 Thread Mel Matsuoka
At 05:13 PM 07/25/2001 +0530, KK wrote: >Hello Alessandro Lenzen - > >I tried that. The perl script with the "adduser" command is getting executed >if I execute it from the command prompt when I am logged in as "root", but >the same script script doesn't get executed from the browser. The web serv

Re: Linux commands in perl

2001-07-25 Thread KK
Nachricht- > Von: KK [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 25. Juli 2001 12:17 > An: Jim Conner > Cc: [EMAIL PROTECTED] > Betreff: Re: Linux commands in perl > > > Hello Jim/Perl Folks - > > Cud u kindly help me with the following: > > Just was curious i

Re: Linux commands in perl

2001-07-25 Thread KK
Hello Jim/Perl Folks - Cud u kindly help me with the following: Just was curious if one can create system user accounts using the command "adduser" from inside a perl script, which will be called from a browser or from within a java servlet? Is there any other way to create dynamic system user a

Re: Linux commands in perl

2001-07-25 Thread Jim Conner
There are other ways as well. You can use the system() function which forks into a child process, waits for the process to complete, and returns.. system("/bin/ls"); @FILES = system("/bin/ls"); And you can use the exec() function. This function does not fork a child process. According to th

RE: Linux commands in perl

2001-07-25 Thread Sascha Kersken
Hi! Try: system "command"; -- >Von: "Rahul Garg" <[EMAIL PROTECTED]> >An: <[EMAIL PROTECTED]> >Betreff: Linux commands in perl >Datum: Mit, 25. Jul 2001 10:44 Uhr > > hello Everybody , > > > Simple question.. > > How to run Linux commands in Perl code... > > W

Re: Linux commands in perl

2001-07-25 Thread KK
Hello Rahul - Just prepend and append the command with the symbol - ` - mind u, this is the back apostrophe, the first button on the keyboard from the left nad side on the second row from top. For eg. --- starts here -- #!/usr/local/bin/perl `ls -l`; -