in reply to execution of cmmand inside a program

my $cmd = './ntlogin.sh data.out > new.bat'; system($cmd) == 0 or die "system cmd '$cmd' failed: $?";

but as mentioned you should also check out perldoc -f system, especially with regard to detecting if your command executed correctly.

Replies are listed 'Best First'.
Re: Re: execution of cmmand inside a program
by ScooterQ (Pilgrim) on Jul 11, 2003 at 13:15 UTC
    To head off the next question (in the event that the command fails), check and make sure the web server user has permissions to run the command and verify that the command is in the web server user's path. Or, better yet, use full paths.