Linux Server Diary

The trials and tribulations of a Linux newbie trying to setup a home server.

Tuesday, November 20, 2007

Cron?

OK, I've done some research and tried a few things, but I can't seem to get my podcatcher to run automatically. The command is:
ruby /home/dgentry/podcatcher/bin/podcatcher /home/dgentry/podcast_subs.opml -D /export/podcasts -s 0 -S back_catalog -H 2007.10.01 -p -v -r 4 -d /home/dgentry/podcatcher -v
When I put this command into cron, it only runs the ruby command without any of the parameters. Also, I tried building a script file, but was not successful.

Anyone have any advice?

Labels: ,

1 Comments:

At 11:03 AM, Blogger steve said...

I don't see why it shouldn't work, but a couple of things to try are:

* Quote the arguments: ruby '/home/dgentry/podcatcher/bin/podcatcher /home/dgentry/podcast_subs.opml -D /export/podcasts -s 0 -S back_catalog -H 2007.10.01 -p -v -r 4 -d /home/dgentry/podcatcher -v'

* Try enclosing it in brackets: ( ruby /home/dgentry/podcatcher/bin/podcatcher /home/dgentry/podcast_subs.opml -D /export/podcasts -s 0 -S back_catalog -H 2007.10.01 -p -v -r 4 -d /home/dgentry/podcatcher -v )

* Try brackets and quotes together

This is usually a problem when you have oddball characters as an argument, but I can't see anything out of the ordinary there... most odd!

Did you get any errors when you tried running it as a script? Were you using #!/bin/sh or #!/bin/ruby to start the script?

 

Post a Comment

<< Home