Sponsored Content
Top Forums UNIX for Dummies Questions & Answers passing parameters to sleep command Post 38417 by nagaraju_svs on Wednesday 16th of July 2003 07:52:14 AM
Old 07-16-2003
passing parameters to sleep command

Hi,

Can any one help me with an example how to use

Sleep command with parameters


thanx,
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Passing parameters in script

I have 2 scripts: script1 and script2 Script1 passes 4 parameters to script2 as follows #script1 code ... ... script2 $var1 $var2 $var3 $var4 Script2 uses the export command to know to expect these values #script2 export $1 $2 $3 $4 code ... ... The problem that I am having is... (1 Reply)
Discussion started by: eliguy
1 Replies

2. Shell Programming and Scripting

passing command line parameters to functions - sh

All, I have a sh script of the following tune: function a () { #functionality.. } function b () { #functionnlity.. } function check () { # this function checks for env and if all fine call build } function usage () { #sh usage details } function build () { #calls either a or b or... (5 Replies)
Discussion started by: vino
5 Replies

3. Solaris

Passing SSH Command Parameters

On Solaris 5.9, is there any way to pass parameter(s), via SSH, to a command defined in the remote host's authorized_keys file? We have a menu that uses SSH to control some apps on our various hosts. I've been tasked with enhancing it and making it more secure. So far, the local host menu... (2 Replies)
Discussion started by: PabloCruise77
2 Replies

4. Shell Programming and Scripting

passing more than 9 parameters

hi, i am passing around 14 parameters for a script a=$1 b=$2 c=$3 d=$4 e=$5 f=$6 g=$7 h=$8 i=\"${9}\" shift j=\"${1}\" still for j it is displaying the 1st parameter value..how to make it take the 10th parameter (2 Replies)
Discussion started by: dnat
2 Replies

5. Shell Programming and Scripting

Passing SSH Command Parameters

Hi, I wan to pass arguments to remote script in Unix . For that I'm using ssh PFB the code I'm using: ssh -t -l osdac 10.81.33.51 "cd /appl/OSD/LOGS/flstr010/test.sh "$1" "$2"" Problem is I'm not able to pass second argument . Can anyone plz help me in resolving this. (5 Replies)
Discussion started by: suchitasaner27
5 Replies

6. Shell Programming and Scripting

Passing parameters to Shell script for GREP command

I am using grep to capture date from a file . Since i need to use the shell script for different dates ,is it possible to pass the date parameter to the shell script the Script is as below grep -E "08 Aug 2008|2008-08-08"* somefile.txt>test.txt The above script file greps the... (1 Reply)
Discussion started by: sud.tech
1 Replies

7. UNIX for Dummies Questions & Answers

Passing the parameters through a file

Hi All, I have written a shell script and the script is working fine, I am passing my MIT_ID(NUMBER VALUE) to the shell script from the command prompt and my script is executing as expected. Now I have to pass all the MIT_ID's from a .txt file to the shell script,as I am automating this I... (6 Replies)
Discussion started by: gaur.deepti
6 Replies

8. Shell Programming and Scripting

passing parameters to the script

how can i make a script to run only when parameters are given, if parameters are not given it should through an error , saying "please enter a parameter" for ex: i want a find command to run only when the parameters are given (4 Replies)
Discussion started by: knip
4 Replies

9. Shell Programming and Scripting

Passing 2+ parameters to one command

I have a script that uses more than one parameter. It looks like this: for i in `cat /tmp/listofpolicies`; do for x in $(cat /tmp/lst |sed 's/^/\/usr\/openv\/netbackup\/db\/class\//g'); do /usr/openv/netbackup/bin/admincmd/bpplinclude $i -delete -f $x;done;done The problem is that the... (3 Replies)
Discussion started by: newbie2010
3 Replies

10. Shell Programming and Scripting

Passing command line parameters into script

Not a good post. (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
shevek::closure(3)					     Library Functions Manual						shevek::closure(3)

NAME
shevek::closure - Block and resume without blocking the main loop. SYNOPSIS
#include <closure.hh> Inherits shevek::refbase. Public Member Functions bool empty () const Check if the closure is empty. void set_function (sigc::slot0< void > func, bool run=true, sigc::slot0< void > cb=sigc::slot0< void >()) Set running function on an empty closure. ~closure () Destructor. void wake () Continue running the closure. Static Public Member Functions static Glib::RefPtr< closure > create () Create a new closure. static void block () Sleep, returning control to the caller until awoken. Detailed Description Block and resume without blocking the main loop. Closures allow blocking and resuming the main loop. They are implemented with threads, which means that they don't work well with multi- threaded programs. If a function wants to be able to block using a closure, it must be called using closure(). It (or any function it calls) can then suspend by calling closure::block(). It can be awoken again by calling closure::wake() on the closure object. Member Function Documentation static void shevek::closure::block () [static] Sleep, returning control to the caller until awoken. This function puts the current closure to sleep. It will continue to run when awoken with wake(). It can also be destroyed. This function uses a global variable to know which is the current closure, so it can be called without an object, as closure::block (); . static Glib::RefPtr<closure> shevek::closure::create () [inline, static] Create a new closure. Create a new closure. It will be empty initially. bool shevek::closure::empty () const [inline] Check if the closure is empty. Check if the closure is empty. If it is, set_function() can be called. void shevek::closure::set_function (sigc::slot0< void >func, boolrun = true, sigc::slot0< void >cb = sigc::slot0< void >()) Set running function on an empty closure. Set running function. The closure must be empty when this is called. When the function exits, the closure returns to the empty state, and the callback is called, if given. void shevek::closure::wake () Continue running the closure. Wake a closure. It is an error to wake a closure which isn't blocking (in particular also the currently running closure). Author Generated automatically by Doxygen for libshevek from the source code. libshevek Fri May 11 2012 shevek::closure(3)
All times are GMT -4. The time now is 06:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy