Name: Anonymous 2011-05-30 17:01
I have a script which cleans files from certain directories, and it contains "$1" variable (which is the directory to run the script in) which sabnzbd feeds into the script when its run.
Now i want to sometimes run the script manually and specify the directory. Is there a command line option where i can specify 1.
so something like
echo 1=/dir/to/clean | ./locationofscript
Now i want to sometimes run the script manually and specify the directory. Is there a command line option where i can specify 1.
so something like
echo 1=/dir/to/clean | ./locationofscript