10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
6) printf "\n GoodBye! \n\n"; exit ;;
I am trying modify the above command to pause a couple of seconds before exiting, so a message can be displayed. Thank you :). (8 Replies)
Discussion started by: cmccabe
2. UNIX for Dummies Questions & Answers
I new to cron job...
I need to schedule a job that runs on a particular day at a specific time
say for example need to send a test mail at around 2:30PM on wed 10th August
i have used the below syntax, but the job was not executed.
30 14 * * * echo "message from UNIX... (3 Replies)
Discussion started by: ch33ry
3. Shell Programming and Scripting
I recently would like to write a shell script that
1. Runs in the background (can be done with "&", but i'd be happy for other solutions to keep programs running)
2. Does its stuff
3 THEN checks a specified folder for a size change over time (say, each 5 seconds. AND ONLY continues with... (9 Replies)
Discussion started by: pasc
4. Shell Programming and Scripting
I am sorting a file, but getting different output with crontab.
when I sort manually
Z (4 Replies)
Discussion started by: suresh3566
5. Shell Programming and Scripting
I've written a shell script to take photos with my camera.
After every picture taken, the picture is transmitted to the computer via usb and then deleted on the camera.
But sometimes there's an error and the picture is not deleted and so, after a certain time, the camera chip will be... (4 Replies)
Discussion started by: McLennon
6. Shell Programming and Scripting
I'm writing a script to restore 3 directories and 3 mysql db's every 24 hours. While writing the script, I came across the thought...
Do I need to pause between executions?
rm -Rf path1/*
cp -Rf path1/* /restore1
chmod 777 /folder1/cache1
... (2 Replies)
Discussion started by: semiotics101
7. UNIX for Dummies Questions & Answers
well is gets stuck and i dont know why.......
all=1; (1 Reply)
Discussion started by: IdleProc
8. Shell Programming and Scripting
Hi, i facing a problem when run the script below..
printf "Please enter a name : "
read response # the problem occur here
# Check that name does not contain invalid... (14 Replies)
Discussion started by: neruppu
9. UNIX for Dummies Questions & Answers
How can i check? How many corn jobs are running?
Thanks Raghu.K (1 Reply)
Discussion started by: raghuk2
10. UNIX for Dummies Questions & Answers
I guess I posted in wrong forum before. How do I pause another process and then restart it on linux? The other process doesn't listen for anything.
Thanks for any help you can offer.
Dane :confused: (1 Reply)
Discussion started by: daneensign
PAUSE(3P) POSIX Programmer's Manual PAUSE(3P)
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond-
ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
pause - suspend the thread until a signal is received
The pause() function shall suspend the calling thread until delivery of a signal whose action is either to execute a signal-catching func-
tion or to terminate the process.
If the action is to terminate the process, pause() shall not return.
If the action is to execute a signal-catching function, pause() shall return after the signal-catching function returns.
Since pause() suspends thread execution indefinitely unless interrupted by a signal, there is no successful completion return value. A
value of -1 shall be returned and errno set to indicate the error.
The pause() function shall fail if:
EINTR A signal is caught by the calling process and control is returned from the signal-catching function.
The following sections are informative.
Many common uses of pause() have timing windows. The scenario involves checking a condition related to a signal and, if the signal has not
occurred, calling pause(). When the signal occurs between the check and the call to pause(), the process often blocks indefinitely. The
sigprocmask() and sigsuspend() functions can be used to avoid this type of problem.
sigsuspend(), the Base Definitions volume of IEEE Std 1003.1-2001, <unistd.h>
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
/The Open Group 2003 PAUSE(3P)