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
  •  


Lenovo ThinkPad L13 Yoga Touch Laptop 13.3” Core i5 8GB RAM 256GB SSD Win 11 Pro picture

Lenovo ThinkPad L13 Yoga Touch Laptop 13.3” Core i5 8GB RAM 256GB SSD Win 11 Pro

$239.99



Lenovo ThinkPad T495 14” Laptop AMD Ryzen 5 PRO 16GB RAM 256GB SSD Windows 11 picture

Lenovo ThinkPad T495 14” Laptop AMD Ryzen 5 PRO 16GB RAM 256GB SSD Windows 11

$229.99



Lenovo ThinkPad L15 Gen 3 15.6

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

$241.50



Lenovo ThinkPad E14 Gen 2 Laptop 14” HD Ryzen 5 16GB RAM 512GB SSD Win 11 Pro picture

Lenovo ThinkPad E14 Gen 2 Laptop 14” HD Ryzen 5 16GB RAM 512GB SSD Win 11 Pro

$319.99



Lenovo ThinkPad T14 Gen 1 14

Lenovo ThinkPad T14 Gen 1 14" AMD Ryzen 5 16GB 256GB SSD

$219.99



Lenovo ThinkPad E14 Gen 3 Laptop 14” FHD AMD Ryzen 5 16GB RAM 512GB SSD Win 11 picture

Lenovo ThinkPad E14 Gen 3 Laptop 14” FHD AMD Ryzen 5 16GB RAM 512GB SSD Win 11

$374.99



Lenovo Thinkpad T14 Gen 2i 14

Lenovo Thinkpad T14 Gen 2i 14" 16GB 512GB, Black

$313.00



Lenovo Thinkpad T14 Gen 2 14

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

$387.46



Lenovo ThinkPad L15 Gen 3 15.6

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

$241.50



Windows 11 PRO Laptop Notebook PC Computer, 8GB Ram, Webcam, Wifi, and HDMI picture

Windows 11 PRO Laptop Notebook PC Computer, 8GB Ram, Webcam, Wifi, and HDMI

$144.00