-
script
what extention do i have to use in order to have a text file run as a bourne shell sript???
-
Re: script
![Quote](images/misc/quote_icon.png)
Originally Posted by
punk000
what extention do i have to use in order to have a text file run as a bourne shell sript???
You can start a bourne shell by clicking the K-Menu and choosing the "Run" option. Then type in sh and hit enter.
I BELIEVE you can automatically have a specific script run within a bourne shell by calling it in a similar manner. K-Menu then "Run" then sh NameOfScript
-
Re: script
![Quote](images/misc/quote_icon.png)
Originally Posted by
punk000
what extention do i have to use in order to have a text file run as a bourne shell sript???
In UNIX, extensions are useless - in fact, there is no such thing as an extension the way there is in DOS: there is only "accepted endings." Periods are just periods...
A Bourne Shell script normally doesn't have any special ending at all. To make a text file executable:
1. Change permissions to executable:
chmod +x myfile
2. Even better: also add this line to the top:
#!/bin/sh
...having done those two things, then this file can be executed by the shell (/bin/sh) as a script.
If you want to be able to execute the script no matter where you are, then put the script in a directory located in your PATH environment veriable...
-
Similar Threads
-
By bob58 in forum General Support
Replies: 24
Last Post: 10-13-2004, 10:08 PM
-
Replies: 1
Last Post: 05-17-2004, 07:54 AM
-
By elbasquero in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 03-17-2004, 09:24 PM
-
By orcslayer in forum General Support
Replies: 1
Last Post: 01-03-2004, 02:04 AM
-
By lindros in forum General Support
Replies: 10
Last Post: 07-24-2003, 08:26 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture](/store/img/g/fxsAAOSwZD5l6PSG/s-l225/1U-BareMetal-pfsense-opnsense-Router-Firewall-DNS-.jpg)
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
![1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE picture](/store/img/g/7KoAAOSwephiKTf4/s-l225/1U-Supermicro-Server-10-Bay-2x-Intel-Xeon-3-3Ghz-8.jpg)
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE
$259.00
![Super micro Server picture](/store/img/g/PNgAAOSweU1mSkvR/s-l225/Super-micro-Server.jpg)
Super micro Server
$168.00
![2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture](/store/img/g/qa4AAOSwMxNk76rN/s-l225/2U-12-Bay-SAS3-SuperMicro-Server-6028U-TR4T-W-X10D.jpg)
2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL
$299.00
![HP ProLiant MicroServer HSTNS-5151 picture](/store/img/g/dL4AAOSwL4BmhDkc/s-l225/HP-ProLiant-MicroServer-HSTNS-5151.jpg)
HP ProLiant MicroServer HSTNS-5151
$59.99
![HP HPE Microserver Gen 7 8 9 iLO 2/3/4/5Advanced License Lifetime Key| FAST SHIP picture](/store/img/g/jMgAAOSwlnhk2TU3/s-l225/HP-HPE-Microserver-Gen-7-8-9-iLO-2-3-4-5Advanced-L.jpg)
HP HPE Microserver Gen 7 8 9 iLO 2/3/4/5Advanced License Lifetime Key| FAST SHIP
$10.00
![HPE ProLiant MicroServer Gen10 picture](/store/img/g/tb4AAOSwpRxmfLpK/s-l225/HPE-ProLiant-MicroServer-Gen10.jpg)
HPE ProLiant MicroServer Gen10
$420.00
![HP ProLiant MicroServer Generation 8 Xeon 4gb 4-BAY 2x500GB HDD (included) picture](/store/img/g/bzsAAOSwEYxmf3N2/s-l225/HP-ProLiant-MicroServer-Generation-8-Xeon-4gb-4-BA.jpg)
HP ProLiant MicroServer Generation 8 Xeon 4gb 4-BAY 2x500GB HDD (included)
$200.00
![Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD picture](/store/img/g/aYkAAOSwLGpmYf9P/s-l225/Supermicro-1U-Server-X9SRI-F-Xeon-E5-2640-v2-2-5Gh.jpg)
Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD
$149.99
![*READ* SYS-5019S-M2 - Supermicro 813M-3 4X3.5](/store/img/g/oJgAAOSwuydmebYK/s-l225/-READ-SYS-5019S-M2-Supermicro-813M-3-4X3-5-32GB-DD.jpg)
*READ* SYS-5019S-M2 - Supermicro 813M-3 4X3.5" 32GB DDR4
$260.00