9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Everyone!
I am facing an issue in running a command line utility from the CRON.
This utility displays IPC statistics on UNIX message queues: The "queue name" and the "count" of messages in the queue.
When running this utility from prompt, it will provide an output on the screen, like the... (4 Replies)
Discussion started by: vai_sh
4 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I'm trying to run a one line for loop from the CRON. This is the exact command
/bin/bash for file in $(/bin/find /opt/local/edw_extract/logs -name "*.log"); do /bin/cat /dev/null > $file; done
This will run from the command successfully.
When I schedule this to run it will... (3 Replies)
Discussion started by: mhauff
3 Replies
3. Shell Programming and Scripting
Here is my cron entry:
13 10 * * * /home/my_login/mystf/myscriptsize.sh > /home/my_login/mystf/`date +"%Y%m%d"`log.csv
Here is my cron error:
unexpected EOF while looking for matching ``'
...cron executes:
/home/my_login/mystf/myscriptsize.sh > /home/my_login/mystf/`date +"
..and NOT... (2 Replies)
Discussion started by: landog
2 Replies
4. Shell Programming and Scripting
Ubuntu 9.10 is my linux distro
Based on forums they say that the problem is with environment .
here is my case:
login as user, then sudo -s
using this command: s3cmd put file s3://bucket >>worked!
now here is the simple script intended for testing:
#! /bin/bash
env >/tmp/cronjob.log... (1 Reply)
Discussion started by: qwerty20
1 Replies
5. Shell Programming and Scripting
Hi all,
Why does '$$' means an empty line in agrep -d '$$'. I did not know that '$$' can be seen as an empty line in regular expression. So did I miss something here ?
Thanks! (4 Replies)
Discussion started by: qiulang
4 Replies
6. UNIX for Dummies Questions & Answers
I have a script which runs fine through command line, but doesn't run through cron. There are some variables which are set by the .profile file which are used by the script. Is it that cront does not pick these variables.
$/export/home/rahul/bin/createfile.sh >>... (3 Replies)
Discussion started by: rahulrathod
3 Replies
7. UNIX for Dummies Questions & Answers
Hey there, I'm a total newbie unix guy here and just picking this stuff up. Have a very small script I put together that works fine from the command line but not once I put it in a cron job. Searched and found this thread and am wondering it it has something to do with setting variables, though the... (7 Replies)
Discussion started by: JackTheTripper
7 Replies
8. UNIX for Advanced & Expert Users
Under, Solaris 10 I have the following problem:
A script executed at command line runs with nice level 0, as expected.
Same script started under (user) crontab runs with nice level 2.
I would prefer it run at 0. Is this possible? If so, how?
Thanks. (0 Replies)
Discussion started by: henrydark
0 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I have spent 2 hours going through the forum and have not found an answer to my question, I hope someone can help.
I have cron setup to run two commands, one at 1am and one at 3 am, the one at 1 am works but not the one at 3 am. The time is set as:
0 1 * * * /path/to/file
0 3 * * *... (3 Replies)
Discussion started by: burnie
3 Replies