Results 1 to 5 of 5

Thread: How do I make a skript?

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    3

    How do I make a skript?

    After booting I have to type in several commands to be executed as root. I'd like to make this a bit easier via script, but I don't know how

    By the way, what means shell, bash etc?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    bash is a shell.
    and a shell (there are several zsh, ch, csh, ash to name a few) is what interprets your typed comands and pass them down to the next level of operation.
    by the way, what comands are they, this might make helping you easyer.

  3. #3
    Junior Member
    Join Date
    Mar 2005
    Posts
    3
    The comands are like
    wlanctl-ng wlan0 lnxreq...
    ifconfig wlan0 ...
    route gw...

    etc.

    I put the lines in a file, name the ending .sh and mark it executable. When I try to run the script nothing happens. I have to copy the lines and paste them into the console, after switching to root.

    By the way... How can I access another resource over the network?

  4. #4
    Junior Member
    Join Date
    Mar 2005
    Posts
    3
    The comands are like
    wlanctl-ng wlan0 lnxreq...
    ifconfig wlan0 ...
    route gw...

    etc.

    I put the lines in a file, name the ending .sh and marked it executable. When I try to run the script nothing happens. I have to copy the lines and paste them into the console, after switching to root.

    By the way... How can I access another resource over the network?

  5. #5
    Senior Member registered user
    Join Date
    Oct 2004
    Posts
    260
    This was the best, and lightest tutorial I could find ( I even bookmarked for myself )

    http://supportweb.cs.bham.ac.uk/docu...scripting.html

    The 3rd paragraph under the topic "Shell Scripting" may have the answer you're looking for.
    You need to specify the shell (interpreter) in the 1st line of the script.

Similar Threads

  1. I really want to make sure before I being...
    By kranberry in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 09-02-2005, 08:11 PM
  2. Replies: 0
    Last Post: 03-29-2004, 11:42 AM
  3. make menuconfig / make dep
    By Lord1981 in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 01-04-2004, 10:19 PM
  4. Should I make a 3.3 CD?
    By Kethinov in forum General Support
    Replies: 1
    Last Post: 09-29-2003, 08:42 PM
  5. Replies: 0
    Last Post: 02-25-2003, 09:51 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
  •  


KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit picture

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit

$19.99



Windows XP, Vista, 8.1, Linux Knoppix, Office XP,  (6 CDS) picture

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)

$12.00



KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED picture

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED

$11.99



Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$5.99



Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$8.00



VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION) picture

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)

$7.97



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$7.00



Vintage Linux DVD - Knoppix 5.2 - c't Magazine - 7 / 2007 - Software Collection 2 picture

Vintage Linux DVD - Knoppix 5.2 - c't Magazine - 7 / 2007 - Software Collection 2

$8.04



Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006 picture

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006

$34.45