Page 1 of 1

Post Processing Perl Script

Posted: April 14th, 2010, 10:07 pm
by digi691
So first I am new to perl and having a hard time trying to find the proper way to grab the $1 variable from sabnzbd.  If someone could help by giving a simple example in perl on how to do this i would appreciate it.  Everything i've googled is showing the reverse, a bash script grabbing the exit code from a perl script.  Thanks in advanced.

-digi

Re: Post Processing Perl Script

Posted: April 20th, 2010, 4:18 am
by Napalm
Have you tried looking at @ARGV and *_.
I haven't written anything for Sabnzbd myself.

If it passes it on the command line then your arguments will be space delimited stored in the @ARGV array.