Results 1 to 4 of 4

Thread: script

  1. #1
    Member registered user
    Join Date
    Feb 2003
    Posts
    52

    script

    what extention do i have to use in order to have a text file run as a bourne shell sript???

  2. #2
    Member registered user
    Join Date
    Feb 2003
    Location
    Milwaukee, WI
    Posts
    49

    Re: script

    Quote 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

  3. #3
    Member registered user
    Join Date
    Feb 2003
    Posts
    43

    Re: script

    Quote 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...

  4. #4
    Member registered user
    Join Date
    Feb 2003
    Posts
    52
    thank you

Similar Threads

  1. help with writing script
    By bob58 in forum General Support
    Replies: 24
    Last Post: 10-13-2004, 10:08 PM
  2. klik script
    By j.drake in forum Klik
    Replies: 1
    Last Post: 05-17-2004, 07:54 AM
  3. Script for floppy?
    By elbasquero in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 03-17-2004, 09:24 PM
  4. Startup Script doesn't run
    By orcslayer in forum General Support
    Replies: 1
    Last Post: 01-03-2004, 02:04 AM
  5. Help with a script
    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
  •  


LENOVO THINKPAD T14s GEN 2a Ryzen 7 PRO 5850U 1.9GHz 16GB 256GB TOUCH - NO OS picture

LENOVO THINKPAD T14s GEN 2a Ryzen 7 PRO 5850U 1.9GHz 16GB 256GB TOUCH - NO OS

$299.95



Lenovo ThinkPad L14 Gen 3 Laptop 14” FHD Core i5 12th 16GB RAM 512GB SSD Win 11 picture

Lenovo ThinkPad L14 Gen 3 Laptop 14” FHD Core i5 12th 16GB RAM 512GB SSD Win 11

$374.99



Lenovo ThinkPad Business Laptop 14

Lenovo ThinkPad Business Laptop 14" AMD Ryzen 7 16GB RAM 256GB SSD Windows 11

$229.99



Lenovo Thinkpad T14 Gen 2 14

Lenovo Thinkpad T14 Gen 2 14" 16GB, Thunder Black

$313.00



Lenovo ThinkPad L15 Gen 3 15.6

Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black

$230.00



Lenovo ThinkPad L14 Gen 1 i5-10210U 16GB 512GB SSD Win 11 Pro Very Good picture

Lenovo ThinkPad L14 Gen 1 i5-10210U 16GB 512GB SSD Win 11 Pro Very Good

$229.99



Lenovo ThinkPad T14 Gen 1 Core i5  1.70GHz, 16GB RAM , 256GB SSD picture

Lenovo ThinkPad T14 Gen 1 Core i5 1.70GHz, 16GB RAM , 256GB SSD

$239.99



Lenovo ThinkPad T14 Gen 3 14

Lenovo ThinkPad T14 Gen 3 14" WUXGA Ryzen 5 6650U Pro 16GB 256GB Radeon 660M

$449.00



Lenovo Thinkpad E15 Gen 2 8GB RAM 256GB SSD Intel Core i5-1135G7@2.40GHz Laptop picture

Lenovo Thinkpad E15 Gen 2 8GB RAM 256GB SSD Intel Core [email protected] Laptop

$220.36



Lenovo ThinkPad T580 15.6

Lenovo ThinkPad T580 15.6" FHD W11 Pro Laptop i5-8250U 8GB 256GB Backlit / USB C

$175.00