e.g.
This work in ksh as well. For posix you probably have to use a while loop.
Works (almost) fine in bash, too. But I don't understand the use of the sleep command as a background process. Furthermore, the "done" messages caused by returning sleeps disturb the display :-(
Nevertheless, much simplier would be just the good ole
BR,
Hi all,
Wanted to a create a shell script
-----------------------------------------------------------------------
1) which when called will start a timer and wait for 48 hours.
after 48 hours it will call some function(say XYZ)
2) Whenever this shell script is called (can be called... (3 Replies)
any of you guys have a script for measuring the run time of any given script, where you would sandwich your own script between the timer script or something? thanks! :) (2 Replies)
Hey guys, I'm brand new to the bash scripting world, here's my issue..
When people SSH to my box, I'm wanting to use screen to monitor them if I so choose. So, I've created a new user: testing, and I've set its startup shell to /bin/myshell.sh whose contents read this:
#!/bin/sh
$me =... (4 Replies)
Hi
I have a script that execute every X minute for checking new files in a folder and converting to pdf.
Is there any way to start this script automatically on linux startup?. I use sleep function in script with infinite loop.
while
do
killall -u `whoami` -q soffice
soffice... (0 Replies)
So I am attempting to get a short but complex perl script to be able to time out an application that I will launch from a command line. The terminal I use is MKS C SHELL and I am having trouble doing the a job spawn that will launch the application and keep time on it.
I know you could do this... (1 Reply)
Hey folks,
We already got a working Script running, but actually we gotta start it manually but at least we want to run it like every 30minutes 1time.
Could anyone give it a shot?
#!/bin/sh
for i in A B C D E F G H I J K L M N O P Q R S T U V W X Z
do
ln -sv /x/$i/*/PDF/001-*.*... (1 Reply)
Hello Experts-
We are facing some issues in the while loop script when we use the script time to decide whether to exist from the loop or continue.
Below is the script
SrcExitLoop="FALSE"
Src_InitialStartTime=`date +%s`
Src_StartTime=`date +%s`
Src_NUM_ALERTS=0
TOTAL_ALERTS=`expr <SOME... (4 Replies)
Hi
Could somebody please help me with this code?
------------------------------------------
@ftp -i -s:"%~f0"&GOTO:EOF
open mysite.co.uk
myusername
mypassword
!:--- FTP commands below here ---
cd public_html/
binary
lcd c:\
put myfile.jpg
bye
... (3 Replies)
Discussion started by: dobbies
3 Replies
LEARN ABOUT FREEBSD
i8254
ATTIMER(4) BSD Kernel Interfaces Manual ATTIMER(4)NAME
attimer -- i8254 Programmable Interval Timer (AT Timer) driver
SYNOPSIS
This driver is a mandatory part of x86 kernels.
The following tunables are settable from the loader(8):
hint.attimer.X.clock
controls support for the event timer functionality. Setting this value to 0 disables it. The default value is 1.
hint.attimer.X.timecounter
controls support for the time counter functionality. Setting this value to 0 disables it. The default value is 1.
hw.i8254.freq
allows overriding the default counter frequency. The same value is also available at run-time via the machdep.i8254_freq sysctl.
DESCRIPTION
This driver uses i8254 Programmable Interval Timer (AT Timer) hardware to supply the kernel with one timecounter and one event timer, and to
generate sound tones for the system speaker. This hardware includes three channels. Each channel includes a 16 bit counter which decreases
with a known, platform-dependent frequency. Counters can operate in several different modes, including periodic and one-shot. The output of
each channel has platform-defined wiring: one channel is wired to the interrupt controller and may be used as event timer, one channel is
wired to the speaker and used to generate sound tones, and one timer is reserved for platform purposes.
The attimer driver uses a single hardware channel to provide both time counter and event timer functionality. To make this possible, the
respective counter must be running in periodic mode. As a result, the one-shot event timer mode is supported only when time counter func-
tionality is disabled.
The event timer provided by the driver is irrelevant to CPU power states.
SEE ALSO apic(4), atrtc(4), eventtimers(4), hpet(4), timecounters(4)BSD May 26, 2014 BSD