![]() |
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 |
| Calling a shell script from php | eltinator | Shell Programming and Scripting | 1 | 04-22-2008 01:16 AM |
| Calling shell functions from another shell script | jisha | Shell Programming and Scripting | 6 | 04-05-2008 04:29 PM |
| Calling Shell Script | onlyroshni | Shell Programming and Scripting | 1 | 10-22-2007 07:29 PM |
| calling sqlplus from shell | suds19 | Shell Programming and Scripting | 2 | 10-24-2002 04:01 PM |
| Calling shell script ? | Ravi_Kandula | Shell Programming and Scripting | 1 | 10-07-2002 09:30 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
calling a prg from the shell!!!
Hi,
can somebody please answer my questions: 1) is the "sh" available on all unix systems at /bin/sh ??? 2) how to make the following call working: `which java` -cp $JAVA_HOME MyClass since I do not know the location of java :-(( Last edited by andy2000; 03-30-2007 at 08:33 AM.. |
|
||||
|
1) Do ls -1 /bin/*sh
- This would probably list of shells available of your machine. /bin/bash* /bin/csh* /bin/jsh* /bin/ksh* /bin/pfcsh* /bin/pfksh* /bin/pfsh* /bin/remsh@ /bin/rksh* /bin/rsh* /bin/sh* /bin/ssh* /bin/tcsh* /bin/zsh* 2)Find out the java path on you machine,most of the times its under /usr/bin/java,else do a find for java Add that path (/usr/bin/java) to your PATH variable Once the PATH is set ,you dont have to say which java. Please search the forum of adding PATH to your shell .profile file Thanks Nagarajan Ganesan |
|
|||||
|
Quote:
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|