LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-10-2004, 03:29 PM   #1
begin55676
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
Lauching script at shell startup without having root access.


Hello


I am searching how to automatically launch a script at the terminal start up with limited access : i am not authorized to log as root on this machine, and so I can't edit /etc/csh.cshrc, etc...

Can I do it with editing .tcshrc or another user's accessible files ?


Sorry for my english and my newbicity and thanks to you
 
Old 12-10-2004, 03:35 PM   #2
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
It all depends on when you want the script to be launched.
Terminal startup if you mean when you login to the server then yes you can add your script to the .tcshrc or .bashrc or whatever shell you have.

But if you want the script to be launched when the server first boots up then you will have to have access to one of the startup files most notably rc.local
 
Old 12-10-2004, 03:42 PM   #3
begin55676
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Terminal startup if you mean when you login to the server then yes you can add your script to the .tcshrc or .bashrc or whatever shell you have.
That's what I want to do but I can't get it worked, when the terminal is launched, it stops and wait. I need to do some CTRL-C to continue the launching.

Can you please tell me how I must make the reference to the script in tcshrc, perhaps I did it wrong ?
Thanks you a lot !
 
  


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
Adding a shell script to startup Dakkar SUSE / openSUSE 3 10-15-2005 08:00 AM
Exectuing Shell Script on Gnome Startup lloracle_dba Linux - Software 4 05-03-2005 03:32 PM
Lauching X as non root Djoumy Linux - Software 4 01-08-2005 07:28 AM
what shell script runs only at bootup/startup pwhitey86 Mandriva 2 12-22-2004 10:13 PM
creating shell script that executes as root regardless of who runs the script? m3kgt Linux - General 13 06-04-2004 10:23 PM

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

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