Many thanks bluescreen. How do I check my scipts env?
---------- Post updated at 03:18 AM ---------- Previous update was at 03:13 AM ----------
My env is as such
---------- Post updated at 04:12 AM ---------- Previous update was at 03:18 AM ----------
I think my crons env is as follows as I enabled set >/tmp/mycronenv
---------- Post updated at 04:56 AM ---------- Previous update was at 04:12 AM ----------
Hi again
i have now incorpotrated all my env vars into the script and through cron it now runs .
What Im not sure about is which vars are actually required to run the script. Do I actually need all of them in there??
Last edited by Franklin52; 03-25-2011 at 07:13 AM..
Reason: Please use code tags
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)
I want to add one line to the end of my crontab using a script.
I have tried piping in the editor commands, but I can't get it to work.
crontab -e user << EX
$a
This is the text I want to add.
.
wq
EX
This doesn't work. Is there an easier way to do this? (2 Replies)
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)
Hi!
We are on AIX 5.3
I have a script that must be run once every hour.
How do i add this to the crontab?
I know how to access crontab which is, crontab -e.
What do i do after that ? If i have the path to the script?
Thank you!!! (4 Replies)
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)
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)
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)
Hi guys today i'll bring to you a new problem that i need to execute.
So what i need to do it's create a script that:
conect to some database
logon
run a .sql script
logoff
and close the connection
after that, put this script on the crontab
To set up the crontab it's ok for me, i think... (3 Replies)
Hi All,
I am having the below script to be run from crontab, it it doesnt run.
1 * * * * /home/cobr_ext/test.sh > /home/cobr_ext/temp.txt
when i run i manally it runs without any issues.
Could please help me as to why doesnt it run the script.:( (7 Replies)
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)