10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Oracle Linux 6.
Trying to set up a simple monitoring of memory usage. This command does exactly what I want at the command line:
echo $(date +%Y-%m-%d" "%H:%M:%S) $(grep PageTables /proc/meminfo) >> /home/oracle/meminfo.logBut when I put it in my crontab:
* * * * * echo $(date +%Y-%m-%d"... (2 Replies)
Discussion started by: edstevens
2 Replies
2. UNIX for Advanced & Expert Users
SCO OSR 507, user's shell is old Bourne sh
The same command is OK when run using now, but fails when run in cron, see below:
1) using now, see how it worked and I see resulting DT=2018 in the mail
$ at now
{ dt=`/usr/gnu/bin/date '+%Y'`; echo "DT=$dt"; }
job 1522867418.a-6605:0 at Wed... (2 Replies)
Discussion started by: migurus
2 Replies
3. UNIX for Dummies Questions & Answers
Hi Greetings!!!!!
I want to cron the top command 1 hour once and need to save the file in /home/dm.
i am using redhat linux. (1 Reply)
Discussion started by: thangadurai
1 Replies
4. UNIX for Dummies Questions & Answers
In cron tab, while scheduling any commands to be run in particular time, is there any level of validation being performed to identify whether the command to be executed is perfectly valid. But AFAIK, it's not being reported even if you schedule a non existing command .say tea abc, Where tea ia a... (3 Replies)
Discussion started by: pandeesh
3 Replies
5. UNIX for Dummies Questions & Answers
How can I run the following command from cron?
tar -cvf /email_backup/email_bu_062110.tar /prod/email (2 Replies)
Discussion started by: nim73
2 Replies
6. UNIX for Dummies Questions & Answers
Below are two cron entries. what is the difference beteeen writing 20 and */20? how is "20 * * * *" different from "*/20 * * * *"?
1) 20 * * * * find /tmp/ -name "*.log.*" ! -name "*.gz" -mmin +1440 -exec gzip '{}' \;
2) */20 * * * * find /tmp/ -name "*.tmp.*" ! -name "*.gz" -mmin +1440... (6 Replies)
Discussion started by: niks
6 Replies
7. SuSE
Sir,
I using the following commands in a file (part of a bigger script):
#!/bin/bash
cd /opt/oracle/bin
ls -lt | tail -1 | awk '{print $6}' >> /tmp/ramb.out
If I run this from the command prompt the result is:
2007-05-16
if I run it as a cron job then... (5 Replies)
Discussion started by: rajranibl
5 Replies
8. UNIX for Dummies Questions & Answers
I'm using this in cron:
cd public_html/temp mv 2.php 1.php
that command, from ssh, renames the file in the public_html/temp folder from 2.php to 1.php. For some reason it's not doing it via cron, though. Any idea why? Thanks for your time. (3 Replies)
Discussion started by: wolfyman
3 Replies
9. UNIX for Dummies Questions & Answers
can someone tell me in details what this command does:
pax -rpe -f /dev/rmt0 -s:^/home:/temp/test:g
The definition given in the source i got this from says that command is used to restore the files from /home to /tmp/test.
now, i know there's goto be a deeper explanation than that. can... (1 Reply)
Discussion started by: TRUEST
1 Replies
10. UNIX for Dummies Questions & Answers
I'm trying to execute a command in my crontab, but every hour I'm sent mail that says
/bin/bash: root: command not found
Does anyone know why I'm getting that message? It was in the crontab before I started screwing around with it and it was working fine. Now that I messed with it, ran a... (4 Replies)
Discussion started by: sstevens
4 Replies