LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2004, 10:24 AM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
script question


I made a script
Code:
Eterm --borderless --buttonbar 0 --trans --scrollbar 0 --geometry 80x30+60+100 -f white -c grey
I saved the file to /usr/bin and called it eterm
then I did
Code:
chmod 755 /usr/bin/eterm
I forgot to put in
Code:
#!/bin/sh
it is still working properly, should it be?
 
Old 04-04-2004, 10:30 AM   #2
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Are you launching the script from a Bash shell? In this case, Bash is already running, so maybe it just assumes the task of being the interpreter. I'm just guessing here, as usual.
If you make a menu item for "eterm" in your window manager, does it still run properly?

Another option is putting those settings in .Xdefaults or as an alias in .bashrc...it saves having additional files floating around.

Last edited by mikshaw; 04-04-2004 at 10:31 AM.
 
Old 04-04-2004, 10:39 AM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I appreciate your guesses. It works if I run it from a bashshell or if I use the run command in the gui. It probably would have been a better idea to make the change in my .bashrc profile. I think i will take that advice.

Still curious as to why that runs without the #!/bin/sh(your guess might be correct)
 
  


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
script question lordofring Linux - Software 2 10-27-2005 12:15 PM
Script question yoderp Linux - General 8 07-06-2005 08:57 AM
Question on this script. Echo Kilo Programming 2 12-13-2004 04:20 AM
Script Question blas Linux - General 5 02-14-2004 12:48 AM
Script question? Nicksan Linux - Newbie 3 06-03-2003 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:25 PM.

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