Here are the 3 scripts(FirstScrpt.sh,firstcallScrpt.sh,startProcess.sh) that were running in the server for the past several years.
I understand the way it is written is that for every 1 hour 'firstcallScript.sh' is being called in that it kills the pid of 'startProcess.sh'
and starts again.
2 things I noticed
1. Value of pid.txt never changes if it is being is killed and created every hour.
2. It never runs in the background even when it is run with '&' like (./FirstScrpt.sh &)
FirstScrpt.sh firstCallScript.sh startProcess.sh
Last edited by Cybora; 04-13-2020 at 04:53 PM..
Reason: Edited the firstScript for 1 hour of sleep
hello
whats the difference between excuting a shell script as
a)sh myscript.sh
b). ./myscript.sh
i noticed that my shell script works fine when i run it as . ./myscript
.sh but fails when i run it as sh myscript.sh could anybody explain why.
the shell script is very simple
... (9 Replies)
I have a rather big script that i have written in ksh and it is falling over in two places with a 'test argument' error. I know this usually means that the if statement is not correct, but it is fine. I have looked through the rest of the script for any odd brackets or ` marks, but can't see... (2 Replies)
Hi All,
I am new to shell scripting.
I have a variable which holds a numeric value.I have to check whether this variable holds a value between(0- 8),(8-17)(17-24).How do i write this syntax using if in shell scripting.
Thanks
Vignesh (2 Replies)
Hello All,
I looking for a way to verify the correction of shell script syntax.
Is there any switch like -c in perl which do this in shell ?
Thank You. (1 Reply)
Hi Guys,
iīve a question ... but itīs a litte bit tricky:
iīve a 3 php-scripts which runīs via cron at night. These script reads an xml-file a writes it in an MySQL-DB.
I named them (for example here ) Script1 - Script3. The XML-Files i named xml1 - xml3.
Now, iīve build a Batch-file,... (10 Replies)
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
sorry but need help
http://i.investopedia.com/inv/articles/site/CalculationEMA.gif
trying to achieve ema
in script I have this syntax which errors
ema=` ;
the 0.153846154 ='s Smoothing Factor
really appreciate help (3 Replies)
I am creating a shell script. In which, I need to get server name and server IP. I used this command in script.
servername=`cat /etc/hosts|grep `eval hostname`|awk '{print $2}'`
however, when execute script or put set -x to debug, it return:
line 13: syntax error at line 13: `|' unexpected... (4 Replies)
Hello.
In the following :
RESTORE_FF contain a file name : a_file.tar.gz
I am testing in a directory if "a_file.tar.gz" exists and or if any file like "a_file.tar.gz" exists.
So "a_file.tar.gz" will give me file exists
So "a_file.tar.gz." will give me file exists
So... (5 Replies)
I want to make the file test condition a variable ($Prmshn in code below).
My goal is to use something like the first three unsuccessful if statetments since the 'if
#!/bin/ksh
test_input()
{
Prmshn=${1}
InFLNm=${2}
ifReq="-$Prmshn $InFLNm"
#the following three if statments fail:
#if ] ;... (10 Replies)
Discussion started by: ms63707
10 Replies
LEARN ABOUT DEBIAN
rdup-up
RDUP-UP(1) rdup RDUP-UP(1)NAME
rdup-up - update a directory tree with a rdup archive
SYNOPSIS
rdup-up [OPTION]... DIRECTORY
DESCRIPTION
With rdup-up you can update an (possibly) existing directory structure with a rdup archive.
The rdup archive has to be given to rdup-up's standard input.
Username and uids
rdup outputs both the username and uid, the receiving system (which may be a totally different system) checks if the username and uid
match. If the username and uid don't match the (numeric) uid is used on the file. The same holds true for the groupname and gid.
OPTIONS -n Do a dry-run and do not create anything on disk.
-t Create DIRECTORY (ala mkdir -p) if it does not exist.
-s N Strip N path components from a pathname. If the resulting pathname is empty after this operation it is skipped. Be careful however
with the following structure:
/foo
/foo/bar
/foo/bar/bla.txt
/foo/blork/bla.txt
With rdup-up -s2 this will leave:
<empty>
<empty>
/bla.txt
/bla.txt
And the last 'bla.txt' will overwrite the previous one, this will happen without warnings.
-r PATH
This option is related to the -s option, but works different. The string PATH is removed from (the beginning of) each pathname. With
-r /home/backup the pathname /home/backup/bin/mycmd becomes /bin/mycmd. The same could be done with -s 2, but then you need to count
the slashes. Note -s is always performed before -r.
-v Be more verbose and echo the processed files to standard output.
-vv Be even more verbose and echo processed file and the uid and gid information to standard output.
-T Show a table of contents of the rdup stream received (ala tar -tf -). With -T the directory argument is optional. -T unsets any
verbose (-v) options.
-h A short help message.
-V Show the version.
EXIT CODE
rdup-up return a zero exit code on success, otherwise 1 is returned.
AUTHOR
Written by Miek Gieben.
REPORTING BUGS
Report bugs to <miek@miek.nl>.
SEE ALSO
http:/www.miek.nl/projects/rdup/ is the main site of rdup. Also see rdup(1), rdup-tr(1) and rdup-backups(7).
COPYRIGHT
Copyright (C) 2005-2010 Miek Gieben. This is free software. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Licensed under the GPL version 3. See the file LICENSE in the source distribution of rdup.
1.1.11 13 Dec 2008 RDUP-UP(1)