LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-08-2005, 04:12 AM   #1
demigor
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
small shell script required


Hello,

Could you please assist me in writing a small shell script that would check mounted partitions (jfs) from /proc/mounts and if found read-only mounted partitions it would run a fsck.jfs and remount it to read-write ?

Thanks.
 
Old 08-08-2005, 04:40 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
welcome to LQ!

...

could you post the code you have written so far?
 
Old 08-08-2005, 04:54 AM   #3
demigor
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
nothing is written so far, I am a beginner in bash scripts
Thanks for a warm welcome message
 
Old 08-08-2005, 06:53 AM   #4
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 46
you should check out the Bash Guide for Beginners : http://www.tldp.org/LDP/Bash-Beginne...tml/index.html

sorry i am at work now and i am using windows
so i cant help you out now
 
Old 08-08-2005, 07:01 AM   #5
demigor
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
heema, thanks very much for the link, I'll check it a little bit later.
for now, is there anyone who could write this small script for me ? I could check it and learn. thanks.
 
Old 08-08-2005, 01:13 PM   #6
Dave Kelly
Member
 
Registered: Aug 2004
Location: Todd Mission Texas
Distribution: Linspire
Posts: 213

Rep: Reputation: 31
I'm going to say that no, we can not write the script for you. This is an unusual script for a first time beginner to want to write. Sounds strangely like homework.

All of us qualified to answer your question learned by reading the tutorals and writing the code first, then coming here for help. The script you want is not big enough to teach you anything.

Start reading here.
http://www.linuxvoodoo.com/resources...debugging.html
http://marketing.openoffice.org/2.0/featureguide.html
http://advbash.activeventure.net/index.html
http://www.linuxlinks.com/Software/U...ts/index.shtml
http://shamrockshire.yi.org/scripts.html
http://martin.f2o.org/linux/?offset=480
http://javascript.internet.com/

Writer you code. Run it and post the results. What errors do you get.
And then we'll help you.
 
Old 08-08-2005, 04:38 PM   #7
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
Re: small shell script required

Quote:
Originally posted by demigor
Hello,

Could you please assist me in writing a small shell script that would check mounted partitions (jfs) from /proc/mounts and if found read-only mounted partitions it would run a fsck.jfs and remount it to read-write ?

Thanks.
we would love to assist you, but this means there needs to be something to assist!
this is exactly why i asked you for any existing code...

the word lazy comes to mind...
before people just help out, they mostly do want to see the thread auther to show some kind of effort, and that not only in starting the thread. Or they want to see somebody being lost in what they are atemtping...
the websites are good hints, and you should be able to find things fairly quickly, you never need to read the entire tutorials, just the sipets that cover what you need.

now you have your chance to 'prove' the word that came to my mind (lazy) was a missjudgment :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
shell script help required syntax error sridhar11 Programming 1 10-31-2005 08:38 AM
newbie help on small shell script ripcurl Programming 5 09-20-2005 03:17 PM
shell script provides an error that a binary operator is required max_rsr Linux - General 1 03-12-2005 08:26 AM
New Firewall Script Required smurf Linux - Networking 1 06-10-2004 07:29 AM


All times are GMT -5. The time now is 09:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration