timed commands


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers timed commands
# 1  
Old 11-10-2005
timed commands

Hello,

How can I set up events to be executed at a certain time? And do I need some kind of privilege such as being in cron group?
# 2  
Old 11-10-2005
You create cron entries or use the "at" command. On most systems both of these things are protected because they can be exploited - ie., hacked.

try
man at

man cron
# 3  
Old 11-10-2005
running command at a particular time

Good Afternoon. You have many tricks in unix to play with. most simple one is the sleep command.if you know that you will run the command after 15 minutes,say echo "$LOGNAME". (sleep 900; echo $LOGNAME) > $LOGNAME.log &. If you dont like a sleep type, then you could use either at or cron command. you need to have the permission to run this. you may just check out the permission by just typing "at" and if does not give any bad remark then you fine.

at now +11 minute <command.list

in the command.list you could write down any thing you like to be done.

cron is more robust and you could run and rerun the commands. you have to make a file with and then run that as an argument with crontab. crontab mylist.

thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Command timed out implementation

I have a running service which runs in background. It execute shell commands by function system(cmd) I need to report fail when command execution takes more than 60 seconds. Parent doesn't need to wait for 60 seconds of time if the cmd execution completed already. runCommand() { pid_t... (3 Replies)
Discussion started by: techmonk
3 Replies

2. AIX

Ssh connection timed out

Hello, I have two AIX6.1 machines that can communicate with each other through ssh. The problem is that one of them somehow closes the connection after some time and i don't know the reason of that. For example today i send through rsync command 7 files from one server to the other. It send... (7 Replies)
Discussion started by: omonoiatis9
7 Replies

3. Emergency UNIX and Linux Support

SSH operation timed out

This has never happened before, but my laptop is now unable to access any remote servers. I have tried with 3 independent servers that I have access as recently as last week. I am not asked for my password, home:~ x$ ssh -v -p22 user@server OpenSSH_5.2p1, OpenSSL 0.9.7l 28 Sep 2006... (17 Replies)
Discussion started by: chrisjorg
17 Replies

4. Shell Programming and Scripting

timed kill within script?

I want to warn everyone, I am not a programmer lol. I'm an IT wanting to get a little insight of programming, and I like to play around so I can learn. Ok, so I'm going to school for IT Security and Forensics. I had a project to write a hack, and I chose to write a shell script to run dd to write... (8 Replies)
Discussion started by: joshbgosh10592
8 Replies

5. Shell Programming and Scripting

Timed Scripts

Hi all I need a little bit of help, i am looking for a script that can have different events in it and then if it is a certain day email me about it some sort of email reminder system any ideas thanks (4 Replies)
Discussion started by: ab52
4 Replies

6. Solaris

I/O timed out

I have Ultra 45 Sun solaris box with Solaris 10 installed. My problem is when i boot the unix box, i got the message: What does this message meant? then it does not continue to boot successfully. Please help. Thanks in advance. (5 Replies)
Discussion started by: etcpasswd
5 Replies

7. Programming

Timed wait?

Is there any way in which I can make my wait signal to wait for a specified time for child job to complete. And if that time is over, the program gets out of the wait signal to process other things (4 Replies)
Discussion started by: anjul_thegreat
4 Replies

8. HP-UX

connection timed out

I am trying to connect with my hp machine using "dialup networking." It times out after 30 seconds. Is there a way to adjust this time. Would it have anything to do with rexec? thanks (0 Replies)
Discussion started by: paschal
0 Replies

9. UNIX for Advanced & Expert Users

deferred: connection timed out with NT

We recently installed a new release of SCO UNIX (5.0.6) and when I try to relay e-mail from the UNIX box to my NT server (the mail server) I get the following message from sendmail. Deferred: Connection timed out with nt I have nt set up as my relay server in sendmail.cf and the mail seems to... (8 Replies)
Discussion started by: jmossman
8 Replies

10. UNIX for Advanced & Expert Users

Connection Timed out

I connect to a Sun Box through telnet but it timed out in couple of minutes. Advance thanks for any idea...help... (2 Replies)
Discussion started by: s_aamir
2 Replies
Login or Register to Ask a Question