LinuxQuestions.org
Review your favorite Linux distribution.
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 07-07-2010, 03:10 AM   #16
LinpusKelvin
Member
 
Registered: May 2010
Posts: 39

Original Poster
Rep: Reputation: 15

I am sorry. T tried the steps that u told me but it doesnt work. Usually, when we type in the terminal for the script, we need to type bash heritrix.sh

I wonder whether we need to somethings like that on somewhere.

Is there any other solutions or things to add on.

Really glad and looking forward to hear from u.

Thanks again
 
Old 07-07-2010, 03:30 AM   #17
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,843

Rep: Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596
Since the script is executable there is no need to run it through bash. You can just use the full path to the script:
Code:
/root/heritrix.sh
so you can also do the same for the gnome startup programs menu.
Take a look at this example (in the place of firefox you can put your script) to see how it's done.

Regards
 
0 members found this post helpful.
Old 07-07-2010, 08:07 PM   #18
LinpusKelvin
Member
 
Registered: May 2010
Posts: 39

Original Poster
Rep: Reputation: 15
I tried it on the rc.local for the script that end with & but also cant work.

I tried it on the startup that u showed me, but also cant work.

By default the software in web base will start once I type in 127.0.0.1:9090 after the script is initiate.
Attached Thumbnails
Click image for larger version

Name:	Screenshot-2.png
Views:	5
Size:	27.1 KB
ID:	4062   Click image for larger version

Name:	Screenshot-3.png
Views:	8
Size:	28.1 KB
ID:	4063  

Last edited by LinpusKelvin; 07-07-2010 at 08:21 PM.
 
Old 07-07-2010, 10:41 PM   #19
confidenceb
LQ Newbie
 
Registered: Jun 2008
Posts: 11

Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Ok, so it exits when run from an xterm.
If that's the case, remove the script from /etc/rc.local and put it in gnome startup programs you'll be set.

Regards
that's might be reasonable solution
 
0 members found this post helpful.
Old 07-08-2010, 02:59 AM   #20
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,843

Rep: Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596
Quote:
By default the software in web base will start once I type in 127.0.0.1:9090 after the script is initiate.
I guess you mean that you have to open a browser and use that URL to access the server.
If that's the case and you want the browser to also open on startup with the above URL, you can add the following at the end of your script (assuming you use firefox)
Code:
/usr/bin/firefox http://127.0.0.1:9090 &
 
  


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
[SOLVED] g++ error message no matching function for call to some function Jerry Mcguire Programming 6 04-13-2010 08:37 PM
problem of function call address in executable file valpa Programming 12 09-05-2008 08:36 AM
Compilation issue when Function is parameter in function call on LINUX sa20358 Linux - Software 2 07-24-2008 10:19 PM
weird PHP problem: Call to undefined function mysql_connect() Shioni Linux - Server 4 12-22-2006 05:26 AM
problem on dynamic function call inside a class! antony_csf Programming 0 06-29-2004 10:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration