Hi,
I have a cron job that runs analog on each of my domains. An example entry is this:
0 4 1 analog +g/www/vhosts/domain.com/logs/analog.cfg
This works fine, and it works from the command line of a telnet session. I wanted to move all the analog calls to a single sh script and have a single call by cron to run the script. I figured that it is easier to manage a script file than the cron file. Anyway, I cannot get a simple sh script to work. Here is what I have (along with other variations )
#!/bin/sh
analog +g/www/vhosts/domain.com/logs/analog.cfg
BUT I GET AN ERROR: failed to open configuration file. Permissions look fine. File is there. Also, I tried fiddling with changing directories in the script but got errors doing that...
#!/bin/sh
cd /www/vhosts/domain.com/logs
cd ..
BUT GOT ERROR: cd: can't cd to /www/..etc OR cd: can't cd to ...
So, I am having some newbie problems trying to to move my multiple cron job calls to a single sh script, and also getting errors with a simple thing like changing directories from the script.
Any help is appreciated!
Thanks,
Randy