How to write an at command which executes a script every month on 3 rd


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to write an at command which executes a script every month on 3 rd
# 1  
Old 11-05-2009
Question How to write an at command which executes a script every month on 3 rd

Hi

Any one pls give me the at command which runs 3 rd of every month at 2 am.

Its urgent ...Your help would be so much for me


Thanks ..
# 2  
Old 11-05-2009
at is for one-time commands. If you want periodic execution, use cron.
# 3  
Old 11-05-2009
Question

Hi

But i can write a scheduler script which contains an at command which runs my script 3 rd of every month .

And set the scheduler to look for the at command and then only run my script ...

Pls help me with the at command which runs 3 rd of every month at 2 pm ..

Thank You
# 4  
Old 11-05-2009
Must be a homework problem,

Anyone else would use cron.

Thread closed.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ksh: How to write the log file simultaneously when .sql file executes by UNIX process

Hello Team- we would like to implement an approach which has to write the log file simultaneously when .sql file is executing by Unix process. At present,it is writing the log file once the process is completed. I've tested the current process with the below approaches and none of them... (1 Reply)
Discussion started by: Hima_B
1 Replies

2. UNIX for Dummies Questions & Answers

Script partially executes??

Hi All, I am calling a shell script from another shell script, however, it only executes part of it (the echo commands only). What could be some causes for that? For example: ShellScriptA.sh: ... ... ... . ShellScriptB.sh ShellScriptB.sh contents: echo date echo... (7 Replies)
Discussion started by: DBnixUser
7 Replies

3. Shell Programming and Scripting

script executes some time but not always.

I have following script to send email when a USB is attached. #!/bin/bash NUMBER=`/bin/cat /u/numberoflines` LINES=`/usr/bin/wc -l < /var/log/messages` DIFFERENCE=$(($LINES-$NUMBER)) if ; then tail -n $DIFFERENCE /var/log/messages |while read line do if $( echo $line | grep --quiet... (2 Replies)
Discussion started by: kashif.live
2 Replies

4. UNIX for Dummies Questions & Answers

How does the command "script" executes?

Hi i was searching for the source code of the unix/linux command "script" but i could not find any where. could some one explain How can we write a program which runs at background and reading the current terminal ? (1 Reply)
Discussion started by: rakeshkumar
1 Replies

5. Shell Programming and Scripting

Script to counting a specific word in a logfile on each day of this month, last month etc

Hello All, I am trying to come up with a shell script to count a specific word in a logfile on each day of this month, last month and the month before. I need to produce this report and email it to customer. Any ideas would be appreciated! (5 Replies)
Discussion started by: pnara2
5 Replies

6. Shell Programming and Scripting

Command executes on the command line but not from script

Hello guys, I have the following commands : Command 1: sudo find "../bundlepool" -name "merchandising2.html" -print0 |xargs -0 -I {} cp "rebranding/merchandising2.html" {} Command 2: find "../bundlepool" -name "merchandising2.html" -exec cp rebranding/merchandising2.html {} \; Command 3: ... (2 Replies)
Discussion started by: ihabo01
2 Replies

7. Shell Programming and Scripting

Write Command - with script

This is all on a Unix computer where I login using Putty (for references sake). I was wondering if it was possible to use the write command with an already predetermined message in mind. I'm attempting to write to another user, but I'd like to do something like: write user1 "Message" So... (2 Replies)
Discussion started by: eXist73
2 Replies

8. Windows & DOS: Issues & Discussions

Batch script executes twice

Hi, Batch script gets executed without any error, but on execution some of the partial contents of the batch file gets appended at the end of the file which is currently in execution, hence the script tries to execute again for the second time , which should not happen. How to get it... (5 Replies)
Discussion started by: milink
5 Replies

9. Shell Programming and Scripting

write a shell script to execute a command

Hello all, I have just started doing shell scripting. I want to read a file which stores the status of my job I have submitted on a cluster. The file looks something like this : ========================FILE============================= crab: Checking the status of all jobs: please wait... (4 Replies)
Discussion started by: learn_linux
4 Replies

10. Shell Programming and Scripting

Write a shell script to find whether the first day of the month is a working day

Hi , I am relatively new to unix... Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell.. This is very urgent. Thanks for ur help... (7 Replies)
Discussion started by: phani
7 Replies
Login or Register to Ask a Question