The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Script help
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-29-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,763
The name of the file is up to the standards you have for your system. Ususally coders use filename.sh. Unix is not Windows so it doesn't care about file extensions.

To make the code run under ksh do two things

1. change script to have a shebang "#!" as the VERY FIRST line in the script
Code:
#!/bin/ksh
2. change permissions on the file - in this example we call the script filename.sh
Code:
chmod +x filename.sh
to run the script, just type the name of the script file and press return.