sleep is very popular command and we can start sleep from 1 second
# wait one second please
sleep 1
but what the alternative if I need to wait only 0.1 second or between 0.1 to 1 second ?
remark: on linux sleep 0.XXX works fine , but on solaris sleep 0.1 or sleep 0.01 - not illegal syntax
yael
I have been experimenting with the time command(/usr/bin/time).
Code:
( sleep 3
echo ${LOGIN}
sleep 2
echo ${PSWD}
sleep 2
while read line
do
echo "$line"
PID=$?
sleep 2
kill -9 $PID
done < temp
sleep 5
echo "exit" ) | telnet ${HOST}
while is executing only command and exits.
Light Sleep Alarm Clock
I would like to share with you a free smart alarm clock / sleep tracker app that will try to wake you up in the best moment in the morning and improve the quality of your sleep.
I'm running the below command, and monitoring the output file on the other system:
ssh $ip_address 'for n in 1 2 3 4 5; do sleep 10; echo $n >>/tmp/count; done'
If I kill the ssh command using ^C or by just killing the terminal I'm logged in on, I'd expect the remote command to terminate, too.
My objective is to check the value of a variable which I will set it in the command line after sleep time mentioned in the script.I have executed my script in the background then pressed Enter.I have set temporary variable like below export PAUSE="PAUSE".I am not getting the value of the variable after SLEEP time mentioned in the script.Please help me.I have to print the value of the var
12.04/Huawei e367.
First make Startup-menu in terminal:
sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop
Now it is under Stop-button.
Make txt-file and save it in Home with these commands:
sleep 4s; nmcli nm wwan on
sleep 5s; nmcli nm wwan on
sleep 6s; nmcli nm wwan on
sleep 7s; nmcli nm wwan on
sleep 8s; nmcli nm wwan on
sleep 9s; nmcli nm wwan on
sleep 10s; nmcl
I am trying to write a small bit of PL/SQL that has a non-CPU burning sleep in it.
The following works in sqldeveloper
begin
dbms_lock.sleep(5);
end;
BUT (as the same user), I can't do the following:
create or replace
procedure sleep(seconds in number)
is
begin
dbms_lock.sleep(seconds);
end;
without the error "identifer "DBMS_LOCK" must be declared...
Hey everybody.
There's a built in command in Max OSX Mountain Lion called caffeinate. (Man page here).
It basically creates an assertion so the computer doesn't go to sleep.
I leave my computer uploading and/or downloading small files from our work FTP server at night, problem is due to new behave rules of sleeping mode in Mountain Lion it goes to sleep 10 minutes after I turned the screen off.