Run Bash Script thrice & then interval for 10 mins.
Hi...
I am very new to shell scripting. I have written a script with help of this forum and some googling and it works the way I want it to. Currently this script checks for my SIP trunk registration every 5 seconds, if registration is not available then it reboots my router through telnet session and keeps rebooting it till the registration is available.
I would like the router rebooted only thrice at max and then wait for 10 minute, check for registration again and if failed then max 3 reboots and interval again.
However if the trunk registration is successful then script should keep checking it every 5 secs as per current practice.
Hi All.
I have a script which has to be run periodically. The frequency of its run will be decided by a Database stored value PollRate.
e.g. If PollRate value is 300secs, then the script should be executed every 5 minutes, if it's 1500secs, it should execute every 15 minutes.
Is there... (5 Replies)
Hi friends,
I need to write a script which runs a command (on that particular server only) after every 10 mins, and the contents are also echoed on that very terminal only.
And then I need to compare the last two outputs, and mail if there is any difference in the last two outputs.
Can we set... (4 Replies)
Hi ,
I am working on the following script . I want this script to run and scan the log file repeatedly after 3 hours. This script will run & scan just for the current date logs and after every 3 hours. Kindly advice what to add in this script for this purpose.
#!/bin/sh
diff common.log... (3 Replies)
I am using Solaris 9. I wish to run my script every 1 minute inteval. Though i can run it using below entry in crontab.
* * * * /export/home/username/script/file_exist_&_run.sh
in short above script will check whether a specific file exist in a directory. If it found it will inovke another... (10 Replies)
I have a script I want to run in the background, and I have looked it up but I am not exactly sure how to do. First of all to run it in the background do you have to put something in the script or is it just a command when you go to run it. I found this solution to it but once again I am not to... (2 Replies)
Hi,
I want to schedule a job to run every 15 mins through cron.
searched the forums and came up with this piece of code.i have given this in my crontab
0-59/15 * * * * sh /usr/ss/job
But its not being run. Have i made any mistake here.
Can any1 post the cron code for scheduling the... (5 Replies)
Hi,
I have command that should run continuously for 30 mins but not every day not once in a week , not one in a month. whenever i call that particular program that command should run for 30 mins and stop.
#Contents of test.pl
`ls -l *.txt`;
#some other lines of code to print
... (1 Reply)
Hi,
Can someone help me in running a cronjob everyday between 7 and 8 pm with the time interval of 5 minutes in between to repeat that script. The script is so small and I need that to run daily between this time. Please if possible provide me the syntax for this logic.
Thanks. (4 Replies)
Hi Friends,
I am newbie to shell programming and I am stuck trying to accomplish following task.We use Bamboo CI which executes script1 passing parameters. This Main script executes script2 as backend process as part of one of it statements. Task of script2 is to essentially check whether a... (0 Replies)
Hello,
Since I m new to shell, I had a hard time to sought out this problem.
I have a log file of a utility which tells that batch files are successful with timestamp. Given below is a part of the log file.
2013/03/07 00:13:50 Apache/1.3.29 (Unix) configured -- resuming normal operations... (12 Replies)
Discussion started by: rpm120
12 Replies
LEARN ABOUT DEBIAN
ants
ANTS(1) User Commands ANTS(1)NAME
ANTS - part of ANTS registration suite
DESCRIPTION
Example usage:
./ANTS ImageDimension -m MI[fixedimage.nii.gz,movingimage.nii.gz,1,32] -o Outputfname.nii.gz -i 30x20x0 -r Gauss[3,1] -t Elast[3]
Compulsory arguments:
ImageDimension: 2 or 3 (for 2 or 3 Dimensional registration)
-m: Type of similarity model used for registration.
For intramodal image registration, use:
CC = cross-correlation MI = mutual information PR = probability mapping MSQ = mean square difference
For intermodal image registration, use:
MI = mutual information PR = probability mapping
-o Outputfname.nii.gz: the name of the resulting image.
-i Max-iterations in format: JxKxL, where:
J = max iterations at coarsest resolution (here, reduce by power of 2^2) K = middle resolution iterations (here,reduce by power of
2) L = fine resolution iterations (here, full resolution). This level takes much more time per iteration!
Adding an extra value before JxKxL (i.e. resulting in IxJxKxL) would add another iteration level.
-r Regularization
-t Type of transformation model used for registration
For elastic image registration, use:
Elast = elastic transformation model (less deformation possible)
For diffeomorphic image registration, use:
Syn[GradStep,TimePoints,IntegrationStep] --geodesic 2 = SyN with time with arbitrary number of time points in time discretization
SyN[GradStep,2,IntegrationStep] = SyN with time optimized specifically for 2 time points in the time discretization SyN[GradStep] =
Greedy SyN, typicall GradStep=0.25 Exp[GradStep,TimePoints] = Exponential GreedyExp = Diffeomorphic Demons style exponential mapping
Please use the `ANTS -h ` call or refer to the ANTS.pdf manual or antsIntroduction.sh script for additional information and typical
values for transformation models
ANTS 1.9 May 2012 ANTS(1)