Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old April 13th, 2004, 12:53 AM
alsedeeq alsedeeq is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 alsedeeq User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 ..

Reply With Quote
  #2  
Old April 15th, 2004, 07:32 AM
alsedeeq alsedeeq is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 alsedeeq User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
please,
any help!

Reply With Quote
  #3  
Old May 6th, 2004, 11:18 AM
Hko Hko is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Groningen, The Netherlands (Europe)
Posts: 4 Hko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by alsedeeq
When the input finished it will run the program with exec() function [..snip..] afterwards the script ask for another input..

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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > simple Shell Script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway