11-23-2005
Need help with tasks!
Hi guys! I have a dummy question for u
I cant find a solution for these tascks...tried everything (i know
).
1 Issue the following command sleep 1000
Note that sleep 1000 waits 1000 seconds!!! You cannot do anything now!!!
2 Open another terminal window and enter the tty command to identify the name of this terminal window
Use the ps command to identify the PID of the sleep command (tasks 5)
Kill the sleep command using the PID number.
What did you notice? Can you use now that other terminal window?
Thx for reading this thread!
10 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
Numbers of users unsure what is a System Administrators work, tasks and his routine. Here is a good link on a System Administrators Work Schedule also summary of tasks or work queue that the person handle (a full checklists). Also there is some details on every tasks.
... (0 Replies)
Discussion started by: killerserv
0 Replies
2. UNIX for Dummies Questions & Answers
Could someone tell me how I can simplify the script that follows!!!
I know that there must be a way how to
grep Average from sar01..................
sar02 .......................
sar03.......................
sar04... (3 Replies)
Discussion started by: JairGuerra
3 Replies
3. Shell Programming and Scripting
I know that this has a bad title, but I'm not sure how to sum it up well.
(And I'm new to Linux in general, so please excuse any incorrect terminology :o)
Anyway, I'm trying to create a script that gets whatever folder you're in, and then does a command with that directory as an argument. I... (2 Replies)
Discussion started by: droppedonjapan
2 Replies
4. AIX
I've been given more responsibility at work and was basically told to take junior system admin responsibilities over our aix box. The catch is, I need to learn on my own. I know basics, but what are some task that I could perform on a daily basis for starters? We have a support group, but not so... (2 Replies)
Discussion started by: NycUnxer
2 Replies
5. Shell Programming and Scripting
As far as I know
Crontab is the utulity to schedule tasks to run at specific times.Is there any utility to perform the same task (4 Replies)
Discussion started by: tjay83
4 Replies
6. Solaris
Hi there
Created some zones on my m5000, both going to be used for oracle. Been reading up about how solaris 10 has made tuning of the /etc/system file redundant and the use of rctladm / projects have taken over.
Been reading the manuals, but my head is about to explode. Thought I would... (2 Replies)
Discussion started by: sbk1972
2 Replies
7. Homework & Coursework Questions
1. Write a shell program which renames the current directory with the given file extension to another extension. The playoffs are given on the command line.
Example usage:
$ Rename txt doc
will be renamed:
aaa.txt in aaa.doc
Juhutxt in Juhudoc
...
* To solve, you can also help with... (5 Replies)
Discussion started by: eclip
5 Replies
8. Shell Programming and Scripting
Hi, I have a question.
I have a file that I need to do two things to.
The first thing I need to do is turn a file with lines before and after a line with the term "Acceptance" into only the "Acceptance" line and every line thereafter. I am using this:
grep -A1000000 "Acceptance" Brown_DL... (2 Replies)
Discussion started by: mikey11415
2 Replies
9. Shell Programming and Scripting
I am in the process of updating a folder of hundreds of recipe html files. I've already managed to modify a number of things in each file but I have run into something that's beyond my ability.
I have a text file that I need to insert the contents into the html at a specific point. It creates... (0 Replies)
Discussion started by: Trapper
0 Replies
10. Shell Programming and Scripting
I want to back up some of my system folders on a regular basis. Let's say some every day, but some other every week.
I kinda know how to get backup like this form:
tar cjf archive-$(date +%Y%m%d).tbz2 / -N ./archive-$(date -d yesterday +%Y%m%d)
But, I DONT KNOW how to add this files to... (2 Replies)
Discussion started by: dr_mabuse
2 Replies
SLEEP(1) BSD General Commands Manual SLEEP(1)
NAME
sleep -- suspend execution for an interval of time
SYNOPSIS
sleep seconds
DESCRIPTION
The sleep command suspends execution for a minimum of seconds.
If the sleep command receives a signal, it takes the standard action.
IMPLEMENTATION NOTES
The SIGALRM signal is not handled specially by this implementation.
The sleep command will accept and honor a non-integer number of specified seconds (with a '.' character as a decimal point). This is a non-
portable extension, and its use will nearly guarantee that a shell script will not execute properly on another system.
EXIT STATUS
The sleep utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
To schedule the execution of a command for x number seconds later (with csh(1)):
(sleep 1800; sh command_file >& errors)&
This incantation would wait a half hour before running the script command_file. (See the at(1) utility.)
To reiteratively run a command (with the csh(1)):
while (1)
if (! -r zzz.rawdata) then
sleep 300
else
foreach i (`ls *.rawdata`)
sleep 70
awk -f collapse_data $i >> results
end
break
endif
end
The scenario for a script such as this might be: a program currently running is taking longer than expected to process a series of files, and
it would be nice to have another program start processing the files created by the first program as soon as it is finished (when zzz.rawdata
is created). The script checks every five minutes for the file zzz.rawdata, when the file is found, then another portion processing is done
courteously by sleeping for 70 seconds in between each awk job.
SEE ALSO
nanosleep(2), sleep(3)
STANDARDS
The sleep command is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.
HISTORY
A sleep command appeared in Version 4 AT&T UNIX.
BSD
April 18, 1994 BSD