|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
simple Shell Script
hi,
I need to implement a small shell script. The script should allow the input of a new program name and its arguments. When the input finished it will run the program with exec() function where the program will be searched using PATH variable afterwards the script ask for another input.. please I tried but did not succeed yet,, any help will be highly appreciated. Thanks in advance .. |
|
#2
|
|||
|
|||
|
please,
any help! |
|
#3
|
|||
|
|||
|
Quote:
The "exec" command replaces the running script with the program mentioned after the "exec" command. So, after "exec" executes, the script will not be running anymore. Therefore it cannot ask for another command line. (there are ways around this, using brackets, but that doesn't make sense...). So don't use "exec", just call the program from your script. |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > simple Shell Script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|