The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how can i create a simple progress bar in shell aditya.ece1985 Shell Programming and Scripting 5 11-30-2007 07:22 AM
Modifying simple commands to create a script rocinante Shell Programming and Scripting 8 06-03-2007 09:35 PM
simple batch renaming...45-*.php to 46-*.php bcamp1973 UNIX for Dummies Questions & Answers 2 11-01-2006 10:51 AM
batch file ramneek IP Networking 1 11-08-2005 11:09 AM
How to create a simple todo file? sierra_aar UNIX for Dummies Questions & Answers 4 02-17-2002 04:44 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-25-2007
Hyunkel Hyunkel is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 4
How to create an run a simple batch file?

Hi,
So, I created a file named TEST.BAT in my home directory.

In it, I wrote:


#! /bin/bash
echo Hello


and then, saved the file.


Then, at the command-line interface, I typed TEST.BAT, but the command-line never executes the file and thus, never returns "Hello". It says "command not found".

I tried various combinaisons, such as TEST, 'TEST', "TEST", 'TEST.BAT' and "TEST.BAT". I also put "exec" in front of all these commands...but it still says "command not found".

Any help?
  #2 (permalink)  
Old 09-25-2007
jas jas is offline
Registered User
  
 

Join Date: Sep 2007
Location: US
Posts: 7
...

did you try ./TEST.bat
  #3 (permalink)  
Old 09-25-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
and did you try "chmod +x TEST.BAT"

Try to use UNIX naming conventions.
Sponsored Links
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0