more useful options | |
PerlMonks |
Re^2: Passing user input to a shell commandby james734 (Initiate) |
on May 17, 2007 at 22:06 UTC ( [id://616121]=note: print w/replies, xml ) | Need Help?? |
I know that the file $file does not exist, I open it to insure that user is typing the file exists. The question should have been how do I tell the shell line that $file = <STDIN> is the value that is entered by the user and to put it into the shell line ie
User enters test.txt
So $file is now = test.txt
the shell command shout be
perl /Users/james/perlstuff/macc/macc1 test.txt.
James
In Section
Seekers of Perl Wisdom
|
|