<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: delay function in ksh in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833414#M100562</link>
    <description>hi emily,&lt;BR /&gt;&lt;BR /&gt;the sleep command can take variables as arguments.&lt;BR /&gt;&lt;BR /&gt;below a simple test:&lt;BR /&gt;&lt;BR /&gt;export VAL=30&lt;BR /&gt;sleep $VAL&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you may wish to post an extract from your script/code that is failing&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
    <pubDate>Mon, 31 Jul 2006 02:33:00 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2006-07-31T02:33:00Z</dc:date>
    <item>
      <title>delay function in ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833407#M100555</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  If i want to delay any predefined time (e.g. $TIME) in ksh, what the best way, any command? Thanks.</description>
      <pubDate>Sun, 30 Jul 2006 20:32:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833407#M100555</guid>
      <dc:creator>emily_3</dc:creator>
      <dc:date>2006-07-30T20:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: delay function in ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833408#M100556</link>
      <description>What do you want to delay?  The 'sleep' command will wait for the number of seconds specified before proceeding.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ls -l&lt;BR /&gt;sleep 30 ### Delay 30 seconds&lt;BR /&gt;ls -l&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 30 Jul 2006 21:02:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833408#M100556</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-07-30T21:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: delay function in ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833409#M100557</link>
      <description>The sleep command will do for the problem as you describe it but what you may want is a timeout if keyboard input is not forthcoming. You can do this via the line command and specifying an optional timeout.&lt;BR /&gt;&lt;BR /&gt;DELAY=15&lt;BR /&gt;XX=$(line -t ${DELAY})&lt;BR /&gt;STAT=${?} # capture status of last command&lt;BR /&gt;if [ ${STAT} -eq 0 ]&lt;BR /&gt;  then&lt;BR /&gt;    echo "Input was read; XX = ${XX}"&lt;BR /&gt;  else&lt;BR /&gt;    echo "No input was read; timed out"&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;This construct will allow a script to wait for an input or take a default action if no input is received.&lt;BR /&gt;</description>
      <pubDate>Sun, 30 Jul 2006 21:30:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833409#M100557</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-30T21:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: delay function in ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833410#M100558</link>
      <description>Thanks.&lt;BR /&gt;&lt;BR /&gt;  It seems command "sleep" can only have fix number argument, and couldn't able to have valuable argument.&lt;BR /&gt;  Command "line" is ok with valuable argument, but the delay can be interruptted by keyboard.&lt;BR /&gt;  Is this correct? any other good ideas.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.</description>
      <pubDate>Sun, 30 Jul 2006 22:31:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833410#M100558</guid>
      <dc:creator>emily_3</dc:creator>
      <dc:date>2006-07-30T22:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: delay function in ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833411#M100559</link>
      <description>What exactly are you trying to accomplish?  If you explained more precisely what you are trying to do then perhaps we could better help you.</description>
      <pubDate>Sun, 30 Jul 2006 22:37:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833411#M100559</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-07-30T22:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: delay function in ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833412#M100560</link>
      <description>Both the sleep command and the -t argument of timeout will accept a shell variable as an argument; in fact, the command itself couldn't tell the difference between a constant and and variable. It would really help if you described what you want to accomplish. For example, if you wanted to start a command in the background and then be notified when it is finished, that is the job of the shell's builtin "wait" command.&lt;BR /&gt;</description>
      <pubDate>Sun, 30 Jul 2006 22:40:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833412#M100560</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-30T22:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: delay function in ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833413#M100561</link>
      <description>The environment is that a script is called at the same time by different system. And it seems have some conflict at certain command in the scrip, so I plan to implement different delay time at the very begining of the script by using a valuable for each system.&lt;BR /&gt;Just now the scirpt failed because the valuable which sent to the sleep command is empty, so it confused me that sleep cann't follow by a valuable.&lt;BR /&gt;now it works. Thanks.&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jul 2006 01:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833413#M100561</guid>
      <dc:creator>emily_3</dc:creator>
      <dc:date>2006-07-31T01:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: delay function in ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833414#M100562</link>
      <description>hi emily,&lt;BR /&gt;&lt;BR /&gt;the sleep command can take variables as arguments.&lt;BR /&gt;&lt;BR /&gt;below a simple test:&lt;BR /&gt;&lt;BR /&gt;export VAL=30&lt;BR /&gt;sleep $VAL&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you may wish to post an extract from your script/code that is failing&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 31 Jul 2006 02:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delay-function-in-ksh/m-p/3833414#M100562</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-07-31T02:33:00Z</dc:date>
    </item>
  </channel>
</rss>

