9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Have two 3 files which has list of servers,users and location and base url which is common on every server
A = server1 server2 server3
B = user1 user2 user3
C = dom1 dom2 dom3
baseurl=/opt/SP/
and what i have to achieve is below via ssh from REMOTE SERVER
for it's first iteration it... (7 Replies)
Discussion started by: abhaydas
7 Replies
2. Shell Programming and Scripting
I was just wondering if there is a way to pass an new option or argument to an already running command or program. Let us say you run "zenity --list <options>" and you like to add a title or change the title you used on it while it is already running, is it possible to do that? (1 Reply)
Discussion started by: cryogrid
1 Replies
3. Shell Programming and Scripting
one thing i was trying to figure out is if you can give people the option to choose what they want to do in a shell script. for example, let's just say that you have a simple shell script to install a couple of programs, can you make it to where you can press a certain key to install a certain... (1 Reply)
Discussion started by: hotshot247
1 Replies
4. UNIX for Dummies Questions & Answers
Hi guys i have written a script which takes the options given to him and execute itself accordingly.
for example
if a script name is doctortux then executing doctortux without option should made doctortux to be executed in automatic mode i.e. doctortux -a
or if a doctortux is needed to run in... (4 Replies)
Discussion started by: pinga123
4 Replies
5. Shell Programming and Scripting
I'm trying to write a script that accepts both arguments and options, e.g.
./script -h 1 -m 15 -s 30
or
./script
-h 1 -m 15 -s 30
I'd like for any of the arguments and options to be optional, and the option values should be numerals only. I've tried both getopt and getopts but I... (1 Reply)
Discussion started by: Ilja
1 Replies
6. Solaris
I have a script name as psin_install_i3fp.sh
I need to run this script like ./psin_install_i3fp.sh step2
What this step2 represents?
my script contains data:
#!/bin/ksh
mkdir logs >> /dev/null 2>&1
./infra/bin/psin_stop_ba.sh
mv ./psin_start_ba.sh... (2 Replies)
Discussion started by: pmrajesh21
2 Replies
7. Shell Programming and Scripting
I want to add options to my shell script but having problems, my code so far is;
#!/bin/bash
lflag=
iflag=
while getopts 'l:i:' OPTION
do
case $OPTION in
l) lflag=1
lval="$OPTARG"
;;... (1 Reply)
Discussion started by: paulobrad
1 Replies
8. Shell Programming and Scripting
I'm just not sure where to start looking into this. I want to be able to create switches for my script. Back in the day I'd make my scripts interactive...you know:
echo "what report do you want"
echo "A)boxes with errors"
echo "B)boxes with more than 5 errors"
echo "C)Service groups that have... (3 Replies)
Discussion started by: DeCoTwc
3 Replies
9. Shell Programming and Scripting
i need to be able to handel if multiple commands are passed into my script.
(ie) -f -r -i .
does anyone know a simple solution to handeling this. Thanks (2 Replies)
Discussion started by: virus_stinger
2 Replies