Gossamer Forum
Home : General : Perl Programming :

I know nothing ...

Quote Reply
I know nothing ...
I have a script that I need to run a cron job on. Problem is that all of the example I've seen for cron call a script and do no allow for a full command line with switches. New to this server admin stuff. Since I know nothing about perl is there a way to write a simple pl file with some kind of exec command in it? This way I could call that script with the crontab and it would execute the full command line.

Sorry for my ignorance. Perl is one of the things I have been planning to "get around to". When I say I know nothing, I mean if it comes after #!/usr/bin/perl, I am useless.

~Rick
Quote Reply
Re: [wayback1] I know nothing ... In reply to
You can use switches like this:

1 * * * * perl /path/to/your/script.cgi --some-switch=foo --some-other=bar
Quote Reply
Re: [Paul] I know nothing ... In reply to
Thank you. I wasn't sure about that. This answers my question.

~rick