![]() |
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 |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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? |
|
||||
|
and did you try "chmod +x TEST.BAT"
Try to use UNIX naming conventions. |
| Sponsored Links | ||
|
|