if ]; then
if ]; then
rm -f ${LOGFILE}.old
fi
mv ${LOGFILE} ${LOGFILE}.old
fi
Havent done nested ifs in a while. I'm reading someones code If I'm reading this correctly. It checks for the logfile, and if it exists it checks for the old logfile and if that exists, it removes the... (8 Replies)
Hi all!
I'm really hoping you can help me out here; now i have searched and searched and have at least worked out that you can't have a nested if statement with a 'done' in it (as i have) as you're killing the parent before the child.
So here's what i have, and here's hoping someone can help... (2 Replies)
Hi I have a requirement to create a 2 folder based on there existance
if
then
cd $var_name
if
then
cd $var_name3
mv -fi *.* $var_TargetPath/$var_name/$var_name3
else
mkdir -p "$var_name3"
chmod 755 "$var_name3"
mv -fi *.* $var_TargetPath/$var_name/$var_name3
else
mkdir... (7 Replies)
considering all variables like S01DEPOSITS will return numbers, i am trying to execute below statement
if ]
then
echo "Queue DEP"
fi
while executing above if statement i am getting error as
if : Syntax error at line 100 : `"$1"' is not expected.
pls help as soon as possible thanks (3 Replies)
I have a bash script that has been running (on SUSE 9.3) dozens of times over the past couple of years without error. Recently it has been hitting intermittent “cp: cannot stat FILE: No such file or directory” errors.
The script has nested loops that continuously process files in a... (2 Replies)
for server in $(echo `cat /tmp/ScanHosts_${USERSNAME}.TXT`)
do
for portnumber in $(echo `cat /tmp/ScanPorts_${USERSNAME}.TXT`)
do
#echo ${server} ${portnumber}
... (3 Replies)
I have two methods...create_2_54 and create_2_55
I have added a nested while loop(previously it has just one loop) in create_2_54
the mv command(which comes first in 2_55) is not working.
for name in `ls -1 1SMH_WICD_V5_2_5*.txt` ; do
mv $name $nametmp.tmp
unix2dos -ascii -437 $nametmp.tmp... (2 Replies)
Hi,
i m trying to create script which logic is like below.
if ; then
x=`cat /tmp/testoutput.log | grep STOP | wc -l`
y=`cat /tmp/testoutput.log | grep RUN | wc -l`
if ; then
echo "process stop"
if ; then
echo "process running "
else
echo "file not found"
fi
----------------... (2 Replies)
Hi ALL,
I am receving a "strange" error using a nested if within an sql operation inside:
./dom.ksh: syntax error at line 80 : `then' unmatched
This is all my script code: in bold the step receiving the error.
Any help would really aprrecieted ......!
**** I have tried all the... (2 Replies)
Discussion started by: AndreaCecco
2 Replies
LEARN ABOUT DEBIAN
svn-autoreleasedeb
SVN-AUTORELEASEDEB(1) User Contributed Perl Documentation SVN-AUTORELEASEDEB(1)NAME
svn-autoreleasedeb - Automatic Release of debian packages from
DESCRIPTION
This script generates and uploads the debian package for svn modules managed by svn-buildpackage.
svn-autoreleasedeb will maintain a state file of all the packages you want to be automatically published, and every time you commit the
debian/changelog file of your package, changing the debian version to a greater value, it will be published.
All the parameters to the script are configured in the conffile. There is no command-line switch. See svn-autoreleasedeb.conf(5) for more
information.
USING
There are two ways of using this script:
1) Run as user svn-autoreleasedeb in cron. This is very useful for software houses that want to have the "nightily build" version of the
software published automatically. In this case, the config file will be "/etc/svn-autoreleasedeb.conf" and it will use
/var/lib/svn-autoreleasedeb/ as scratch dir.
NOTE: edit /etc/default/svn-autoreleasedeb to control this behavior
NOTE 2: all output will be thrown in /var/log/svn-autoreleasedeb/run.log
2) Run as yourself, it will automatizate the work you will have if you have your packages in SVN. In this case, the config file will be
$HOME/.svn-autoreleasedeb/conf and the scratch dir will be $HOME/.svn-autoreleasedeb. svn-autoreleasedeb will not create defaults, you
must have the configuration file created before running svn-autoreleasedeb. See svn-autoreleasedeb.conf(5).
TODO
- Use a snapshot of the time of the commit in
the changelog to checkout the source
- Localize the messages.
- Work with other than all lowercase in conffile.
- Use a better format for conffile.
_EXIT CODES
_exit codes:
0 = Clean _exit
1 = Config file not found
2 = No packages in config file
3 = Couldn't open the state file
4 = Couldn't open the state file for writing
5 = Couldn't determine architecture
SEE ALSO svn-buildpackage(1), svn(1), svn-autoreleasedeb.conf(5), dupload(1)AUTHOR
This manual page was written by Daniel Ruoso <daniel@ruoso.com>, for the Debian GNU/Linux system.
perl v5.8.7 2006-08-16 SVN-AUTORELEASEDEB(1)