LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-05-2008, 02:52 AM   #16
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 37

Enter the command without the #.
 
Old 11-05-2008, 05:00 AM   #17
maradnus
Member
 
Registered: Oct 2008
Location: Yellagiri Hills
Distribution: Fedora
Posts: 87

Rep: Reputation: 15
Add the script in .bashrc file.


like this:

vi .bashrc
------------

sh /usr/local/bin/myscript.sh

:wq
 
Old 11-05-2008, 06:24 AM   #18
xiyoubbs
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
chmod 777 filename ,try it again
 
Old 11-05-2008, 08:25 AM   #19
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Original Poster
Rep: Reputation: 88
Question

Quote:
Originally Posted by General Failure View Post
Enter the command without the #.
the command work, what didn't work was the script running when I logged in.
 
Old 11-05-2008, 08:33 AM   #20
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Original Poster
Rep: Reputation: 88
hey guys, I did all mentioned above but nothing... I don't want to give up! any more ideas?
 
Old 11-05-2008, 11:32 AM   #21
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Original Poster
Rep: Reputation: 88
Smile

Quote:
Originally Posted by maradnus View Post
Add the script in .bashrc file.


like this:

vi .bashrc
------------

sh /usr/local/bin/myscript.sh

:wq
sorry guys! it did work but now every time I open a konsole my script runs! is it a way to run it only once?
 
Old 11-05-2008, 02:56 PM   #22
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
and did you bother reading the man page at all? a previous post about it should've given you exactly what you need to know
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script to monitor log file calipryss Linux - Newbie 14 08-05-2008 10:46 PM
running a shell script which invokes another shell program!!! raghu123 Programming 1 08-04-2008 09:10 AM
Shell script trap and log out a user fmcauley Programming 6 03-06-2007 10:10 PM
Shell Script For Myspace Log in condonm Programming 1 02-08-2007 06:34 AM
Create a shell Script that log in as root mashed Linux - Newbie 1 04-08-2006 04:13 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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