-
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
![Lenovo ThinkPad Laptop PC Computer 15.6](/store/img/g/DLkAAOSwMapmfYli/s-l225/Lenovo-ThinkPad-Laptop-PC-Computer-15-6-Core-i5-8G.jpg)
Lenovo ThinkPad Laptop PC Computer 15.6" Core i5 8GB RAM 256GB SSD Windows 11
$188.57
![Lenovo ThinkBook 14 Gen 6 AMD Laptop, 14](/store/img/g/wU4AAOSwmdZmQCJk/s-l225/Lenovo-ThinkBook-14-Gen-6-AMD-Laptop-14-IPS-60Hz-R.jpg)
Lenovo ThinkBook 14 Gen 6 AMD Laptop, 14" IPS 60Hz, Ryzen 5 7530U, 8GB, 256GB
$569.94
![~OVERSTOCK~ 15.6 Lenovo ThinkPad Laptop: Intel i5 16GB RAM 1TB SSD Windows 10 picture](/store/img/g/zQoAAOSwZ71mfc0x/s-l225/-OVERSTOCK-15-6-Lenovo-ThinkPad-Laptop-Intel-i5-16.jpg)
~OVERSTOCK~ 15.6 Lenovo ThinkPad Laptop: Intel i5 16GB RAM 1TB SSD Windows 10
$309.95
![Lenovo ThinkPad T560 15.6](/store/img/g/LTUAAOSwfvhmfa21/s-l225/Lenovo-ThinkPad-T560-15-6-FHD-Laptop-PC-Intel-i7-8.jpg)
Lenovo ThinkPad T560 15.6" FHD Laptop PC Intel i7 8GB Ram 256GB SSD Fingerprint
$117.00
![Lenovo Ideapad 1 14](/store/img/g/l2oAAOSw3UplMDZC/s-l225/Lenovo-Ideapad-1-14-Laptop-Celeron-N4020-with-4GB-.jpg)
Lenovo Ideapad 1 14" Laptop - Celeron N4020 with 4GB Memory - Intel UHD Graph...
$149.99
![Lenovo ThinkPad Laptop PC 15](/store/img/g/ZC4AAOSw7mJmhN6w/s-l225/Lenovo-ThinkPad-Laptop-PC-15-FHD-Core-i5-16GB-RAM-.jpg)
Lenovo ThinkPad Laptop PC 15" FHD Core i5 16GB RAM 256GB SSD Windows 10 Pro HDMI
$239.99
![Lenovo - Flex 5i Chromebook Plus Laptop with Google AI - 14](/store/img/g/ULUAAOSwgkBlMDnS/s-l225/Lenovo-Flex-5i-Chromebook-Plus-Laptop-with-Google-.jpg)
Lenovo - Flex 5i Chromebook Plus Laptop with Google AI - 14" 2K Touch - Intel...
$349.00
![~CLEARANCE~ 15.6 Lenovo ThinkPad Laptop: 16GB RAM 256GB SSD Windows 10 Pro picture](/store/img/g/56UAAOSw8v9ma0Y0/s-l225/-CLEARANCE-15-6-Lenovo-ThinkPad-Laptop-16GB-RAM-25.jpg)
~CLEARANCE~ 15.6 Lenovo ThinkPad Laptop: 16GB RAM 256GB SSD Windows 10 Pro
$189.95
![15.6](/store/img/g/Hb4AAOSwWahmfbAj/s-l225/15-6-Lenovo-ThinkPad-Laptop-PC-Intel-i5-16GB-RAM-5.jpg)
15.6" Lenovo ThinkPad Laptop PC: Intel i5 16GB RAM 512 SSD Windows 11 Webcam
$216.59
![15.6](/store/img/g/aFMAAOSwS4dmT5XL/s-l225/15-6-Lenovo-ThinkPad-Laptop-PC-Intel-i5-16GB-RAM-5.jpg)
15.6" Lenovo ThinkPad Laptop PC: Intel i5 16GB RAM 512 SSD Windows 10 Webcam
$229.99