Re: Question on Net::FTP.

2004-05-28 Thread Silky Manwani
I was doing this from a Windows to Mac OSX machine. I had a "firewall" turned on in "Sharing". Not sure why it doesn't work with firewall turned on. On May 28, 2004, at 2:41 AM, NYIMI Jose (BMB) wrote: -Original Message- From: Silky Manwani [mailto:[EMAIL PROTEC

Re: Question on Net::FTP.

2004-05-27 Thread Silky Manwani
Never mind. Figured it out. :) On May 27, 2004, at 4:40 PM, Silky Manwani wrote: Hello, I have this program where I am trying to ftp a file from one machine to another. so code somewhat looks like this: $ftp = Net::FTP->new(host, (Debug => 1, Timeout =>600, Passive =>1)); $ftp->lo

Question on Net::FTP.

2004-05-27 Thread Silky Manwani
Hello, I have this program where I am trying to ftp a file from one machine to another. so code somewhat looks like this: $ftp = Net::FTP->new(host, (Debug => 1, Timeout =>600, Passive =>1)); $ftp->login($user,$pass); $ftp->binary(); $ftp->put($file); At some point this code was working and now i

Re: Return value from system command.

2004-03-11 Thread Silky Manwani
Bingo! Got it... Thanks John and David. :) On Mar 11, 2004, at 4:38 PM, John W. Krahn wrote: Silky Manwani wrote: Hello, Hello, Back with the system command but with a different problem. I am calling a program with the system command which has arguments. This program returns a string and I

Return value from system command.

2004-03-11 Thread Silky Manwani
Hello, Back with the system command but with a different problem. I am calling a program with the system command which has arguments. This program returns a string and I need to capture it. @args("command","arg1","arg2"); $res = system(@args); print $res; It prints 0; But before that it print

Re: Nothing executes after system.

2004-03-05 Thread Silky Manwani
s, execute su, then close that process. Hope that helps. Rob -Original Message- From: Silky Manwani [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 1:16 PM To: [EMAIL PROTECTED] Subject: Nothing executes after system. Hello, @args = ("/usr/bin/su","sam"); sys

Nothing executes after system.

2004-03-05 Thread Silky Manwani
Hello, @args = ("/usr/bin/su","sam"); system(@args); print "hello"; Any idea why print never gets executed? So, the switch user takes place but nothing gets executed after that.. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Perl-beginners] Perl script to switch user to root.

2004-03-04 Thread Silky Manwani
Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Silky Manwani Verzonden: donderdag 4 maart 2004 19:03 Aan: [EMAIL PR

Perl script to switch user to root.

2004-03-04 Thread Silky Manwani
Hello, I want to write a perl script to switch user (to root). The problem is that since it asks for the password, I am not sure how I would pass it thru the script. I know I can run the "su root" with the system command in perl, but how do I take care of passing the password. Thanks. -- To u