10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to create an Expect script that does the following:
1) Telnets to an IP address and logs in with user ID and Password
2) Issue a CLI command to the server that will output data of which I am particularly interested in a DS1 clock 'Slips' value. I want to be able to keep issuing... (0 Replies)
Discussion started by: dwightlaidler
2. Shell Programming and Scripting
I have a requirement to work on script, it should take either of arguments.
wrote it as below.
echo "$0: missing argument OR invalid option !
Usage : $0 -m|-r|-d
while getopts mrdvh opt; do
case "$opt" in
m) monitor_flag=monitor;;... (1 Reply)
Discussion started by: ramanaraoeee
3. Shell Programming and Scripting
Hi I am new in shell,
I am trying to create a small script that can do exit if a script is executed when argument not 2
if ; then
elif ; then
fiit keeps returning me
whatever number of argument I... (1 Reply)
Discussion started by: peuceul
4. Shell Programming and Scripting
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
5. Shell Programming and Scripting
I need to create a Kash script that will read two arguments. So if the user enters anything but 2 arguments then they will get and error message. If they enter the two arguments then it will print them out in reverse order. Does anyone know how i can do this? (7 Replies)
Discussion started by: vthokiefan
6. UNIX for Dummies Questions & Answers
If not running a shell script file in current shell (. ./fileName) then $0 represents the executable file name. But in case of invoking shell script file in current shell then i m getting "$0 as -bash" . In such case how can i get the program name (running shell script file name)?
Thanks, (2 Replies)
Discussion started by: painulyarun
7. UNIX for Dummies Questions & Answers
I tried to do a search, but it couldnt pinpoint what my answer since using limited but broad keywords. Sorry in advance ; ;
Im limited to using Bourne shell scripting only, atm I have the following code (just the heading part of it)
# VARIABLE DECLARATION
... (2 Replies)
Discussion started by: eeto
8. Shell Programming and Scripting
I am having a shell script and i will pass different argument diferent time . Please tell me how can i find the last argument that i passsed each time when i exec the script.
Arun. (5 Replies)
Discussion started by: arunkumar_mca
9. Shell Programming and Scripting
please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
10. Shell Programming and Scripting
how to parse the command line argument to look for '@' sign and the following with '.'.
In my shell script one of the argument passed is email address. I want to parse this email address to look for correct format.
firstname.lastname@example.org has '@' sign and followed by a '.'
to be more... (1 Reply)
Discussion started by: rmjoe