The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Execute a UNIX script from DOS prompt. er_aparna Shell Programming and Scripting 24 12-15-2006 04:47 AM
Need to execute 2 scripts, wait, execute 2 more wait, till end of file halo98 Shell Programming and Scripting 1 08-01-2006 01:42 PM
How to execute a .sql file with shell script abuanas Shell Programming and Scripting 2 04-26-2006 01:16 AM
prompt in sh shell diegoe UNIX for Dummies Questions & Answers 1 12-30-2003 11:10 AM
No shell prompt? Mufasa UNIX for Dummies Questions & Answers 2 02-14-2002 04:31 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-23-2008
Registered User
 

Join Date: Apr 2008
Posts: 12
execute shell file on DOS prompt

I have installed cygwin on my computer having windows 2003 server as operating system.

The following command works fine on DOS console:

bash launch_update.sh

Is there any way, that i could run the above shell file, just by typing its name on DOS prompt, in the same way as batch files are executed.
Reply With Quote
Forum Sponsor
  #2  
Old 07-23-2008
Moderator
 

Join Date: Sep 2007
Location: Germany
Posts: 958
Nope. The one is a DOS/Windows prompt and the other thing starts a UNIX Bash Shell which starts the shell script. Maybe you can write a batch file like "launch_update.bat" which contains "bash launch_update.bat", if you like that more.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0