10-05-2006
Quote:
Originally Posted by ragha81
guys
thanks for your replies. i tried both solutions typed here. however, i am unable to get the desired output. I think I didnt make myself clear. I will explain my scenario again. sry abt that
what exactly did you try and HOW given the results it's not what you're looking for?
if you look at my code... you'd see that I have '$FusionHC_DIR/WFStart.ksh' commented OUT. The script simply shows the technique and not necessarily the complete solution.
also pls explain what do you mean by 'THIS HAS TO BE EXECUTED ONLY 3 TIMES AND THIS SCRIPT REFERENCES THE MAIN SCRIPT AGAIN.'?
what is the 'MAIN SCRIPT'?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello,
I a problem. I would like write script in True64 Unix.see below.
last testerkl | head > mailfile.asc
wolteru < mailfile.asc
With the "last" command I get a list when testerkl logged on. And I would like to send this to a user. But how can I write in a "ctrl.-d" and "ctrl.-c" that... (2 Replies)
Discussion started by: Peterh
2 Replies
2. UNIX for Dummies Questions & Answers
Hi folks!
I'm new in this forum and in the UNIX-world too!!
I've got a real problem:
I have to read out datas like name and e-mail-adress from a Windows- Server from the active directory and put this information into a file.
This file should be moved (or copied) on a Unix- Server...
But I... (3 Replies)
Discussion started by: spikylina
3 Replies
3. Programming
Hi All,
I m very new to unix.
I have a basic doubt ..
In unix I m seeing that there is a * at the end of by executable name (exe1*)..
Wht is the significance of that
Thanks a lot in advance (2 Replies)
Discussion started by: binums
2 Replies
4. Shell Programming and Scripting
Hi all,
I am trying to end a Menu script. Can people suggest various methods please?
At the moment I am doing:
quit=n
while
do
...Code
Code
Code...
read userinput
case $userinput in
q|Q) quit=y;;
esac
done
But this doesn't seem to work every time, occasionally it will work,... (6 Replies)
Discussion started by: mikejreading
6 Replies
5. SCO
Hi
Current SCO Unix 5.05
I see that there are filenames with @ at the end of file name for example
in the /usr/lib there is file lpadmin@
what does the @ represent when it is at the end of the file name
Thanks (4 Replies)
Discussion started by: atish0
4 Replies
6. Shell Programming and Scripting
Hi All,
Need help on below script
for g in `cat /home/sid.txt`
do
for h in `cat /home/dev.txt`
do
symmaskdb -sid $g -dev $h list assign |grep FA |head -1|awk '{print $2}' > tt1.txt
done
done
cat /home/sid.txt
**************
123
235
456 (5 Replies)
Discussion started by: ranjancom2000
5 Replies
7. Shell Programming and Scripting
Hello,
I am working with a list that contains a large number of files listed by their absolute path. I am trying to determine a way to delete the file name at the end of each line, therefore leaving just the directory path. For example, I'd like to go from:
/home/something/file... (2 Replies)
Discussion started by: omnivir
2 Replies
8. UNIX for Advanced & Expert Users
This is a very general question but the idea popped into my head several years ago and wanted the opinions of all the master jedi's of this forum. I had a client that no matter what was done to control there spam(spam assassin,anti-virus(email scanning) and etc) sooner or later something would slip... (2 Replies)
Discussion started by: metallica1973
2 Replies
9. Shell Programming and Scripting
Hi,
The first if loop in the script not ending and going to infinite loop.
#!/usr/bin/ksh
set -vx
lc=1
st_date=$(date "+%Y%m%d")
LOGFILE=/home/infa_shared/OM_ftp_transfer.log.$st_date
file="/home/infa_shared/OM_WF.log.$st_date"
while ]; do
if ]
then
sleep 15
let lc=lc+1
print... (4 Replies)
Discussion started by: nag_sathi
4 Replies
SERVICE(8) System Manager's Manual SERVICE(8)
NAME
service - run a System V init script
SYNOPSIS
service SCRIPT COMMAND [OPTIONS]
service --status-all
service --help | -h | --version
DESCRIPTION
service runs a System V init script or systemd unit in as predictable an environment as possible, removing most environment variables and
with the current working directory set to /.
The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT, or the name of a systemd unit. The existence of a
systemd unit of the same name as a script in /etc/init.d will cause the unit to take precedence over the init.d script. The supported val-
ues of COMMAND depend on the invoked script. service passes COMMAND and OPTIONS to the init script unmodified. For systemd units, start,
stop, status, and reload are passed through to their systemctl/initctl equivalents.
All scripts should support at least the start and stop commands. As a special case, if COMMAND is --full-restart, the script is run twice,
first with the stop command, then with the start command.
service --status-all runs all init scripts, in alphabetical order, with the status command. The status is [ + ] for running services, [ - ]
for stopped services and [ ? ] for services without a status command. This option only calls status for sysvinit jobs.
EXIT CODES
service calls the init script and returns the status returned by it.
FILES
/etc/init.d
The directory containing System V init scripts.
/{lib,run,etc}/systemd/system
The directories containing systemd units.
ENVIRONMENT
LANG, LANGUAGE, LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES, LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE, LC_MEA-
SUREMENT, LC_IDENTIFICATION, LC_ALL, TERM, PATH
The only environment variables passed to the init scripts.
SEE ALSO
/etc/init.d/skeleton
update-rc.d(8)
init(8)
invoke-rc.d(8)
systemctl(1)
AUTHOR
Miloslav Trmac <mitr@redhat.com>, Petter Reinholdtsen <pere@hungry.com>
Licence: GNU Public Licence v2 (GPLv2)
COPYRIGHT
2006 Red Hat, Inc., Petter Reinholdtsen <pere@hungry.com>
Jan 206 SERVICE(8)