Find the answer to your Linux question:
Results 1 to 4 of 4
can any body tell me the basics of scripting in linux....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2003
    Location
    India
    Posts
    20

    help on scripting


    can any body tell me the basics of scripting in linux.

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    That really depends on what language you want. There are many; a few are shell scripting, perl, scheme and python.
    I'm guessing that what you want is shell scripting. I'm in quite a hurry right now, so I can't describe it all, but create a file, begin it with a single line which reads "#!/bin/sh", and chmod it to 755 to make it executable. Then just anter the commands, one per line. There are conditional commands and all, see man bash or info bash.

  3. #3
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    I suggest reading the bash scripting howto at any of the linux doc sites.

  4. #4
    Linux Enthusiast
    Join Date
    Jun 2002
    Location
    San Antonio
    Posts
    621
    or you can always read through other scripts that other people wrote. try `file /usr/bin/* | grep Bourne` This will show you all the bash scripts in that directory. Mmm . . . bash.
    I respectfully decline the invitation to join your delusion.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •