LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-28-2011, 03:33 PM   #1
seannachie
LQ Newbie
 
Registered: Oct 2011
Location: BFE, Tennessee
Distribution: Mint 9 Isadora
Posts: 28

Rep: Reputation: Disabled
bash script failure in Mint 9 Isadora


I've always had a permissions problem in most flavors of Linux (esp. Mint) I've used. I can set the permissions in root, but after exiting, my next action fails because for some reason the system reverts to the original set of permissions.
Now I've discovered the problem includes shell files. I can set up a shell file, save & close, then open the file again and the text is still there. Right. But when I try to run it, it stops at the >. I open the file to check it, and it's blank. Chmod doesn't work either.
 
Old 10-28-2011, 04:17 PM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,965

Rep: Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785
I think you need to give an example of what you are doing. If you have a file in your /home/user directory named filename and you change to that directory in a terminal and run: sudo chmod 755 filename you should have given everyone execute permission for that file.

I'm not sure I understand the part below:

Quote:
I can set up a shell file, save & close, then open the file again and the text is still there
If you write a shell script and save it, why would you not expect the text to be there?
How are you trying to run these scripts?
Are you using bash? something else?
 
Old 10-29-2011, 05:11 PM   #3
seannachie
LQ Newbie
 
Registered: Oct 2011
Location: BFE, Tennessee
Distribution: Mint 9 Isadora
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote: If you write a shell script and save it, why would you not expect the text to be there?

Because I'm used to unexpected things happening. Besides, as I have stated, when the process stopped, I opened the file to check, and it was blank.

I referred to this page during this process: http://linuxcommand.org/wss0010.php

I was trying to run the ''version-check.sh' from the Linux From Scratch book. I followed the directions on the link above, but it doesn't work. At this time I can't cut/paste from a PDF, so I found the HTML version of the LFS book online and setup the file from there.
 
Old 10-29-2011, 11:52 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,551
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
If you can copy and paste from the terminal, it would be helpful to show a command prompt session illustrating what is happening. After creating any files, their content could be shown with the cat command.
 
Old 10-30-2011, 11:39 AM   #5
seannachie
LQ Newbie
 
Registered: Oct 2011
Location: BFE, Tennessee
Distribution: Mint 9 Isadora
Posts: 28

Original Poster
Rep: Reputation: Disabled
Classic technician's syndrome. No explanation available.

jafo21369@jafo21369-desktop ~ $ chmod 755 version-check.sh
jafo21369@jafo21369-desktop ~ $ ./version-check.sh
bash, version 4.1.5(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.20.1-system.20100303
./version-check.sh: line 9: bison: command not found
yacc not found
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
./version-check.sh: line 17: gawk: command not found
/usr/bin/awk -> /usr/bin/mawk
./version-check.sh: line 21: gcc: command not found
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.2) stable release version 2.11.1
GNU grep 2.5.4
gzip 1.3.12
Linux version 2.6.32-22-generic (buildd@rothera) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010
./version-check.sh: line 26: m4: command not found
GNU Make 3.81
./version-check.sh: line 28: patch: command not found
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.22
./version-check.sh: line 32: makeinfo: command not found
Texinfo:
./version-check.sh: line 33: xz: command not found
./version-check.sh: line 34: gcc: command not found
Compilation failed

*****************

At least now I know what to do next. Thanks to those who responded.
 
Old 10-30-2011, 11:43 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,551
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Glad you solved it. Threads can be marked SOLVED via the Thread Tools menu.
 
  


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
LXer: The Perfect Desktop - Linux Mint 9 (Isadora) LXer Syndicated Linux News 4 03-16-2011 05:33 AM
linux mint isadora beanstalk Linux - Newbie 7 01-22-2011 12:32 PM
LXer: Linux Mint 9 Fluxbox Review Isadora LXer Syndicated Linux News 0 09-10-2010 12:50 AM
Linux Mint 9 Isadora X Window crash how to debug? michielv Linux Mint 0 08-04-2010 02:38 PM
LXer: Linux Mint 9 (Isadora) Review LXer Syndicated Linux News 0 05-20-2010 12:00 AM


All times are GMT -5. The time now is 01:29 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