LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2002, 02:48 PM   #1
Nyc0n
Member
 
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31

Rep: Reputation: 15
Writing a Script


could someone explain what i have to do to make a script? is it like a batch file? i have a slew of drives to mount and i dont want them to do it automaticly at boot and i want to put them into a script and mount them all with one command......actually its the bind command....do i just put everything into a file and name it something and then excecute it with the "./" option?

please help

nyc0n
 
Old 05-27-2002, 03:25 PM   #2
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
first chmod 755 yourscriptfilename
then write it
then execute it
it works same way as good old autoexec.bat .., but a little more sytax to choose from

you may want to read http://www.tldp.org/LDP/abs/html/index.html
 
Old 05-27-2002, 07:21 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Put them in /etc/fstab with the noauto option

then use mount -a

Last edited by DavidPhillips; 05-27-2002 at 07:23 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with writing a script jedimastermopar Linux - General 10 05-02-2005 01:34 PM
help writing script willinusf Programming 7 07-20-2004 11:37 AM
Help writing a rm script VisionZ Linux - Newbie 17 03-24-2004 07:15 AM
Help Writing a script. teeth44 Programming 2 10-14-2003 12:00 PM
writing a Script spanky5125 Linux - Security 5 01-08-2002 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration