LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-02-2004, 09:04 AM   #1
merlin23
Member
 
Registered: Dec 2004
Location: Vienna
Posts: 46

Rep: Reputation: 15
Angry awake jobs at specified time


hello!
My problem is, I have 2 jobs that were supsended with kill -19 ...

I want them to awake at 10 o clock in the evening...

How do I do this???

I tried several things out at 14:50 to see if it works:

at 14:52 < t

t is a file, where I wrote into bg %2,
because I want job 2 to awake in 2 min.
Nothing happend....


I tried to start this script from crontab...nothing happens here, too...

how the hell do I get this simple action running?

Last edited by merlin23; 12-02-2004 at 12:10 PM.
 
Old 12-02-2004, 09:42 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
maybe try :

at 14.52 -f t

where t is your file ( according to " man at " )

egag
 
Old 12-02-2004, 11:06 AM   #3
merlin23
Member
 
Registered: Dec 2004
Location: Vienna
Posts: 46

Original Poster
Rep: Reputation: 15
I tried that already, i also tried it by just typing at 14:52 .

at the prompt I typed my command

at>bg %2

and then enter and Ctrl-D

nothing happend though...

the same in the /etc/crontab file...i wrote instead of the file to be executet, the command I wished to have executed...

strange thing...
 
Old 12-02-2004, 12:10 PM   #4
merlin23
Member
 
Registered: Dec 2004
Location: Vienna
Posts: 46

Original Poster
Rep: Reputation: 15
to add (maybe something important):

when I execude my script test, where the command bg %2 is written into, I get back following :

bash: bg: %2: no such job

maybe the variable %2 has to be ecaped?

I tried it also with \%2, but this doesn't seem to make a difference...

 
Old 12-02-2004, 01:09 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well... you first gotto make your script work ok,
why "%2" ; can't you just give in the name of the job ?

egag
 
Old 12-02-2004, 01:34 PM   #6
merlin23
Member
 
Registered: Dec 2004
Location: Vienna
Posts: 46

Original Poster
Rep: Reputation: 15
i don't understand, it is a suspended job, what is the name of it? the name of the file that I have executed that started the indexing (my job)?
How can I identify the job, i mean that one which is marked with pid 1416 in my system.
When I make bg %2 in the shell, everything goes well..

here is the excerpt from what I retrieve when I type the "jobs"-command:

[1] - 1646 Stopped (signal) /usr/local/bin/htdig-dbgen (wd: /var/www/htdig/db)
[2] + 22394 Stopped (signal) ./htdig-dbgen (wd: /usr/local/bin)

which is the name of job 2??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
keeping xterm awake LancerNZ Linux - Newbie 1 05-06-2005 08:41 PM
is samba awake? Jan Tanjo Linux - Networking 14 01-16-2005 08:58 PM
longest time awake without sleeping? nixel General 25 05-09-2004 02:42 PM
Staying awake houseathon General 20 10-01-2003 02:13 AM
How do you stay awake? bkeating General 20 01-25-2003 05:40 PM


All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration