Aug 21, 2015, 12:49 PM
Post #3 of 5
ok, so bascially this script extracts data and produces the results in a terminal. and it uses a few switches to do so. the way i usually do system calls is this:
Re: [FishMonger] System call on a file with switches
[In reply to]
my $commandCheck = join (" ", '/home/perl.pl', $argument1, $argument2);
Where perl.pl takes in 2 arguments. But doesn't require any switches to function.
Now I need to do a system call on another script, who to function, uses one switch and a file input. (i.e -r , textfile.txt).
So what I'm bascially asking is, how will this system command above be modified to accommodate the switch? And once that is done, how can I append the results of this script to a file?
I haven't tried anything yet because I don't even know if switches can be appended to system calls!
Hope this makes things abit clearer?