Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
urgent help with getopts
Name: sujoyrc Date: October 31, 2007 at 11:31:36 Pacific OS: HP-UX CPU/Ram: 1 GB Product: HP
Comment:
A simple but urgent query -- I will be very grateful if you advise please. I am writing a script xyz.ksh. It can be run in two modes:- 1) without any parameters. 2) with a tablename as xyz.ksh -s table_name
I am using
while getopts s:s table_name do case $table_name in s) TABLE_NAME=$$OPTARG;; done
The problem I am having is if someone is running by mistake "xyz.ksh -s" that is with the parameter but without the value I am being unable to throw an exception.
Summary: Hi All: I need a KSH script which does the following: 1. CD to Directory - "/home/RAOB/TOC/" and list the files present in that directory 2. Generate both Local time and GM time and compare the file's...
Summary: Please help with gcc on Solaris OS I tried to install a software, but kept getting the following message: gcc -o help help.o /home/solaris/obj/lib/hlp.a -L/usr/openwin/lib -R//usr/openwin/lib -Bstati...
Summary: Hi, I posted a message a couple of days ago asking for some help with a Bourne shellscript, and I have now written some code, but am getting an error, which is "shellscript.sh: syntax error at line 33...