10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying below
echo $Parameters... (10 Replies)
Discussion started by: sundari127
2. UNIX for Dummies Questions & Answers
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff |... (1 Reply)
Discussion started by: Sarita Behera
3. Shell Programming and Scripting
I'm new to Linux and scripting, apologies in advance for 'stupid' questions.
Please help... Im writing a script that calls a sqlplus script but the sqlplus requires inputs and i cant seem to get this to work.
here is my code.
export TERM... (4 Replies)
Discussion started by: Mahomed
4. Shell Programming and Scripting
i have a shell script which needs a string as an input parameter. How to pass the string param as an input?
In command line am running the script.
a="who is a buddy?"
sh sample.sh $a
Inside the script i get this input param as $1 but only the value "who" is accepted... (12 Replies)
Discussion started by: vidhyaS
5. Shell Programming and Scripting
I have one shell script which use two parameter however one of its parameter have space in between.
a.sh 20110114 b c d
here b c d is one parameter
I used 'b c d' but its not giving correct result.
Also i tried b\c\d but this one also didnt work.
Any help would be... (5 Replies)
Discussion started by: diehard
OS SCO Open Server 6.0 MP4
I am trying to change the value of a enviornment variable thru a script and want to pass a parameter on the commande line, If I hard code the value inside the script the script changes the enviornment variable
where my test is
export MYVAR... (6 Replies)
Discussion started by: atish0
I would like to run a compress script on files in certain directories.
My compress_script.sh is just basically
In order for me to use this I have to copy it into each directory and run it.
How can I state the directory on the command line with the compress script so it... (2 Replies)
Discussion started by: NycUnxer
8. Shell Programming and Scripting
I have a 2 files. File1 i am generating using an ETL tool, which is a comman seperated delimited file which contains country code & load date.
everytime, this country code will be updated from a table. It might be AB or BA & ld_date will be for which date we need to load the file.
... (7 Replies)
Discussion started by: Amit.Sagpariya
9. Shell Programming and Scripting
please tell me how to pass parameters 4m shell script to a DataBase stored procedure.
To be specific i have sybase DB.
i mean i want the syntax of the command..
how to connect to DB, pass user id and password, pass the required parameter to SP..
need ur help frnds..
hema (0 Replies)
Discussion started by: hema2026
10. Shell Programming and Scripting
hi I all ,
I have sql statment in my shell script , I pass two argument to the script I need to pass the this two arguments to the sql statment
runsql.sh "1" "2"
updat tables_x set y=0
A=:x should subsituted by "1"
B=:y shuold subsituted bt "2"... (1 Reply)
Discussion started by: habuzahra
service(8) System Manager's Manual service(8)
service - run a System V init script
service SCRIPT COMMAND [OPTIONS]
service --help | -h | --version
service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working
directory set to /.
The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT. The supported values of COMMAND depend on the
invoked script, service passes COMMAND and OPTIONS it to the init script unmodified. 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
service --status-all runs all init scripts, in alphabetical order, with the status command.
If the init script file does not exist, the script tries to use legacy actions. If there is no suitable legacy action found and COMMAND is
one of actions specified in LSB Core Specification, input is redirected to the systemctl. Otherwise the command fails with return code 2.
The directory containing System V init scripts.
The only environment variables passed to the init scripts.
chkconfig(8), ntsysv(8), systemd(1), systemctl(8), systemd.service(5)
Jan 2006 service(8)