Code: Select all
while : do
sleep 1 &
sPID=$!
read TIME < /proc/$sPID/stime
case "$TIME" in
$MYSTARTTIME)record >file.mp2 &
rPID=$!
sleep 30
;;
$MYENDTIME)kill $rPID
;;
esac
sleep 30
done
Code: Select all
while : do
sleep 1 &
sPID=$!
read TIME < /proc/$sPID/stime
case "$TIME" in
$MYSTARTTIME)record >file.mp2 &
rPID=$!
sleep 30
;;
$MYENDTIME)kill $rPID
;;
esac
sleep 30
done
I fixed the while loop. But can't comment on the rest.Mercedes350se wrote:Let me state that I am a bash neophyte so I have been "playing" with the above script but I keep getting the error message:
syntax error near unexpected token `done'
Would somebody analyse the script and advise. Please.
Code: Select all
while true
do
sleep 1 &
sPID=$!
read TIME < /proc/$sPID/stime
case "$TIME" in
$MYSTARTTIME)record >file.mp2 &
rPID=$!
sleep 30
;;
$MYENDTIME)kill $rPID
;;
esac
sleep 30
done
Puppy has the pschedule command.Mercedes350se wrote:I found this script at:
http://turtlespond.net/scripts/scripts/save-dvb
but it states, in part, "Scheduling is via atd ... ".
Searching I found this site:
http://www.simplehelp.net/2009/05/04/ho ... t-command/
Unfortunately my full 3.01 HDD install does not seem to have this command.
What can I do?
To install the "at" scheduler follow the links. http://www.murga-linux.com/puppy/viewtopic.php?t=76335Mercedes350se wrote:Regarding pschedule command and cron - it looks as though these are to schedule tasks on a regular basis rather than, in my case, simply recording "as needed".
To paste into a text editor, after you block-select (highlight) your text, go to your text editor and press your middle mouse-button or wheel at the location where you want it.Hello, I want to ask about how do we can copy paste the texts from console? I thought that we can right click after blocking the text to the notepad. but, It doesn't work. anybody can help me?
it's still not working, Lobster.Lobster wrote:highlight text and click the mouse wheel
middle button or both buttons simultaneously
where you want text to appear.
May take a few attempts to get the hang of it . . .
Code: Select all
dmesg > /root/dmesg.txt