![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gdb: problem while debug an executable file | smartgupta | High Level Programming | 2 | 10-16-2008 11:06 AM |
| Please help to debug a small shell script (maybe AWK problem)? | GreatJerry | Shell Programming and Scripting | 4 | 10-15-2008 03:11 PM |
| debug this script | abhishek27 | Shell Programming and Scripting | 8 | 07-08-2008 05:49 AM |
| How to debug the awk script | chella | Shell Programming and Scripting | 2 | 11-08-2007 07:51 PM |
| Debug an Awk Script | mboro | Shell Programming and Scripting | 1 | 10-01-2007 07:05 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem with the script, help me debug
Hi, When i run the script ./script.sh sun, this give me no output, it should give me the list of file. If i run the script without the argument it should send me echo inside usage(). What is the problem? please help -Adsi Code:
#!/bin/sh
ROOT_PATH=/net/icebox/vol/local_images/spins
STREAM_PATH=$ROOT_PATH/7.1
usage(){
$echo "Usage: [sun]"
}
check_sun() {
ls $STREAM_PATH
}
main(){
if [ $# -eq 0 ]; then
usage
exit 0
fi
PLATFORM_LIST="$*"
if ["$1" = "sun" ]; then
check_sun
fi
exit 0
}
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|