10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have crontab setup via crontab -e
I was wondering if its possible to create a cron job from a script so when the script is run the cron job is created? (3 Replies)
Discussion started by: scriptnewbie
3 Replies
2. UNIX for Dummies Questions & Answers
Hi guys
Can someone help me with a crontab script please?
I have to sort the files from /bin and put the first 3 of then (with size and path) in /home/user/bin_size
i write the command:
find /bin/ | xargs ls -lS | awk 'FNR<4{print($5, $9)}' > /home/user/bin_size
which is working but when... (6 Replies)
Discussion started by: G30
6 Replies
3. UNIX for Dummies Questions & Answers
Hi guys
Can someone help me with a crontab script please?
I have to sort the files from /bin and put the first 3 of then (with size and path) in /home/user/bin_size
i write the command:
find /bin/ | xargs ls -lS | awk 'FNR<4{print($5, $9)}' > /home/user/bin_size which is working but when I... (2 Replies)
Discussion started by: G30
2 Replies
4. Shell Programming and Scripting
Hi All,
I am running a script to find the CPU and memory utilization of the server. Script name is atul. When i run this script then it gives the desired output as DATE, CPU and MEMORY utilization....as mentioned below:
$
$ cat atul
A=`date| cut -d" " -f1-4; top -d 1 -n 1 | awk '/^CPU... (5 Replies)
Discussion started by: atulbassi83
5 Replies
5. Solaris
hi All, here is the problem: I'm not able to specify a PATH inside the user crontab file (/var/spool/cron/crontabs). The only syntax it accepts is the usual "* * * * * file" I'm not able to add PATH, or HOME, or MAILTO, or anything else. when I try to save the crontab, I have the error: ... (1 Reply)
Discussion started by: joe_x
1 Replies
6. Solaris
Hi
I have successfukky created a sh script that runs perfectly well when run. It contains within a pl script that when run through a crontab will not run. Are there restrictions running a pl in cron? (14 Replies)
Discussion started by: rob171171
14 Replies
7. Shell Programming and Scripting
Hi,
How to add a cron job in /etc/crontab using a shell script.??:confused:
Actually the requirement is we need to run a script say, XXX.sh every 10 min through “cron”.
That can be achieved by adding the below code line in the /etc/crontab , (i.e., “crontab -e ” command to add this to the... (4 Replies)
Discussion started by: Dedeepthi
4 Replies
8. Solaris
hi,
how can I add a new value to crontab file using a script not using the command " crontab -e " .
ex:
echo " 10 10 * * * " >> /var/spoll/cron/crontabs/<username>
how can I do that in a correct way??
thanks, (3 Replies)
Discussion started by: Ahmed waheed
3 Replies
9. Shell Programming and Scripting
I know my question maybe eazy, but it realy cause a problem for me
I have a Perl script to run and get some output, I run this script using perl /moutaz/ciscolog/telnet.pl
I made another script as follow:(/moutaz/ciscolog/script)
#!/bin/bash
perl /moutaz/ciscolog/telnet.pl
cp... (6 Replies)
Discussion started by: moutaz1983
6 Replies
10. Shell Programming and Scripting
hi..
i wolud like to know if it´s possible use the crontab command in my script.
the idea is what the script starts automatically, but i don´t know how to do it.
please, help me....
thanks
jonathan (1 Reply)
Discussion started by: DebianJ
1 Replies