![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| undefined variable error | c00kie88 | Shell Programming and Scripting | 4 | 05-20-2008 03:25 AM |
| undefined symbol: clock_gettime' error | dpa078 | High Level Programming | 4 | 04-09-2008 09:29 AM |
| shared object "undefined symbol: fstat" error | marcus121 | High Level Programming | 5 | 04-24-2006 07:11 PM |
| Undefined reference to Error | svh | High Level Programming | 2 | 02-11-2006 12:23 AM |
| ld: 0711-317 ERROR: Undefined symbol: .hello | stockdan | High Level Programming | 2 | 11-25-2003 05:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
undefined error
Hi
following is a simple shell script, -------------------------------- #!/usr/bin/tcsh u=$USER echo $u string="cp c2960-lanbase-mz /tftpboot/$u/c2960-lanbase-mz" string2="cp c2960-lanlite-mz /tftpboot/$u/c2960-lanlite-mz" output=/users/$u/c2960-log.txt if [ grep --quiet $string $output ] && [ grep --quiet $string2 $output ] then echo c2960-lanbase-mz >> /users/$u/success.txt echo c2960-lanlite-mz >> /users/$u/success.txt else echo c2960-lanbase-mz >> /users/$u/failure.txt echo c2960-lanlite-mz >> /users/$u/failure.txt fi ---------------------- when execute I am getting following error ./shellscripts/grtest.sh u=amvarma: Command not found. u: Undefined variable. Please let me know Thx Amit |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|