11-10-2009
thanks, it works
why do you put the variables in double quotes?
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi..
When i refered the script /etc/rc.sysinit...
i found the "action commands" like
But this is not working in my shells..
the following error is coming...
Please anybody help
Thanks in advance
esham (5 Replies)
Discussion started by: esham
5 Replies
2. Shell Programming and Scripting
hi Gurus, please why is this happening:
when i run this:
#!/bin/bash
declare -a name
declare -a ph
declare -a eid
r=0;
c=1;
i=1;
n=;
echo " name phone email_id"
while :
do
#if ; then
#break;
#else
echo -n "field $i:"; read name ph eid;
let "i++";
... (5 Replies)
Discussion started by: tprayush
5 Replies
3. Shell Programming and Scripting
in /etc/init.d/networking of an ubuntu computer, I found this code:
if ifdown -a --exclude=lo; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
Shouldn't it be replace by
ifdown -a --exclude=lo
... (0 Replies)
Discussion started by: raphinou
0 Replies
4. Shell Programming and Scripting
Hello,
I want to do div action in ksh and get the full result(with leftover).
i.e.
4/3=1.33
and not
4/3=1 (4 Replies)
Discussion started by: LiorAmitai
4 Replies
5. Shell Programming and Scripting
Hi all,
I need some help with a script I would like to amend.Let's say it's a simple script like the one below
controls=`grep line /etc/file |grep -v "^#"| awk -F":" '{print $4}'`
for cc in $controls
do
echo $cc
sleep 2
done
cc variable holds a list of 40 numbers.... (2 Replies)
Discussion started by: geovas
2 Replies
6. Shell Programming and Scripting
lets explain it easy by showing the initial file and desired file:
I've a file such this that contains:
initial_file:
31/12/2011 23:46:08 38.6762 43.689 14.16 Ml 3.1
... (1 Reply)
Discussion started by: oreka18
1 Replies
7. Shell Programming and Scripting
Hey everyone
can you check this script logic ?
it has to restart webservice if found server load is higher than X,
also i have put it in crontab to run every one minute
#!/bin/bash
loadavg=$(uptime | awk -F "." '{ print $1 }' | awk -F ":" '{ print $5 }')
if ; then
pkill -9 httpd
service... (7 Replies)
Discussion started by: nimafire
7 Replies
LEARN ABOUT DEBIAN
ae-sccs-put
ae-sccs-put(1) ae-sccs-put(1)
NAME
ae-sccs-put - put sccs version
SYNOPSIS
ae-sccs-put -ycomment -Ginput-file history-file
DESCRIPTION
The ae-sccs-put command is used to commit changes to an SCCS file. It insulates against a number of SCCS's quirks, and maps to Aegis'
expectations better than using the SCCS commands directory in the history commands in the project aegis.conf configuration file.
The file comments must be specified on the command line.
The source file must be specified on the command line.
It is expected that there is not lock current in the history file. This is consistent with Aegis' use of its history tool.
The history file need to exist yet. It will be created (with the sccs admin command) if it does not.
OPTIONS
The following options are understood:
-Gsource-file
This option must be used to specify the source file to be checked into the history.
-ycomment
This option must be used to specify the comment to be attached to the file history. You probably need to use quotes to insulate
the white space in the comment.
EXIT STATUS
The ae-sccs-put command will exit with a status of 1 on any error. The ae-sccs-put command will only exit with a status of 0 if there are
no errors.
ENVIRONMENT VARIABLES
See aegis(1) for a list of environment variables which may affect this command. See aepconf(5) for the project configuration file's
project_specific field for how to set environment variables for all commands executed by Aegis.
COPYRIGHT
ae-sccs-put version 4.24.3.D001
Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Peter
Miller
The ae-sccs-put program comes with ABSOLUTELY NO WARRANTY; for details use the 'ae-sccs-put -VERSion License' command. This is free soft-
ware and you are welcome to redistribute it under certain conditions; for details use the 'ae-sccs-put -VERSion License' command.
AUTHOR
Peter Miller E-Mail: millerp@canb.auug.org.au
//* WWW: http://www.canb.auug.org.au/~millerp/
Reference Manual Aegis ae-sccs-put(1)