I have added the script entry into crontab by using crontab -e.
But its not working yet.
Note: When i was added the script by the time I have faced issue as below
1) If I use crontab -l then i got cant open the script.
solved: I have open the crontab -l then pressed del key only .
2) If i open the crontab -e then I got 0 ,
Solved: I have export the vi EDITOR then ok now.
After that I have opened then i got 96 number.
I dont know How can i solve the issue.
Please advice on this.
Thanks,
Mani
Moderator's Comments:
5 times ignored notices to use code tags from different moderators.
Last edited by zaxxon; 09-14-2011 at 07:24 AM..
Reason: code tags
What is not working ? How do you conclude it doesn't ?
Quote:
Note: When i was added the script by the time I have faced issue as below
1) If I use crontab -l then i got cant open the script.
solved: I have open the crontab -l then pressed del key only .
Can you clarify what the delete key has to do with "crontab -l".
Quote:
2) If i open the crontab -e then I got 0 ,
That means the crontab file is empty.
Quote:
Solved: I have export the vi EDITOR then ok now.
After that I have opened then i got 96 number.
This is expected and the default behavior, i.e. ed is used to edit your crontab. "96" is the number of characters in your crontab file. You need to export EDITOR with an editor you are familiar with.
Its better that you add below line in your .profile file so that everytime you login the EDITOR gets set to vi and is exported.
I think you have taken another session and then tried to crontab -e but the EDITOR wasn't set permanently hence it has given you 96 [the number of characrers].
I have put a cron entry in oracle user for taking hot backup every wednesday@ 2.30 AM and have given the cron entry
30 02 * * 3 /u01/vijay/hotbackupcron 2>&1 >> /u01/vijay/hotbackup.log
also find below the script inside hotbackupcron, i have put in env variables as well
... (13 Replies)
Is this the correct entry to touch a file on 6/6 5AM?
00 05 06 06 * touch /support/home/.no_copy Please use next time code tags for your code and data (5 Replies)
Hi I am trying to test the crontab entry by setting time as below ( set ahead more than 3min before saving the cron)
crontab entry:
30 15 1-27 * * && (cd /scripts;./script.csh.prod.UAT /dev/null 2>&1)
But this is not working, but below one is working.
30 15 1-27 * * (cd... (1 Reply)
Hi
I have a perl script which used 'glance' command to return all the processes with the thread count.
It is working fine when it is executed as a command, but as a crontab entry, the perl script is not getting executed.
thdcnt.pl
#!/usr/bin/perl
my $cmd=`glance -bootup -adviser_only... (1 Reply)
Hi,
i need to setup a cronjob that has will execute iostat command from morning to evening time.
for instance the timing has will be like this.
8:00 A.M -- 6:00P.M
how to define this entry in crontab
Regards (3 Replies)
Hi Everyone , have a nice day
given below is the line i have added in crontab
* * * * * /Rauf/script2.sh
intended to run this script after every minute , when i run this script manually it runs fine and produces output , but after adding it to crontab ( like given above ) , it doesnt work
... (5 Replies)
Sometimes cron really upsets me and I cant figure out these types of wierd dates, but how do I get cron to run something on every other sunday? I am running Solaris 8.
-S (4 Replies)
hi all
how to schedule a cron job running on last day of every third month at
12 midnight
will the following work
0 0 30,31 3,6,9,12 * <required file>
thanks (3 Replies)