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 02-10-2012, 05:50 PM   #1
kaaliakahn
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Rep: Reputation: Disabled
problem running small cshell script?


Hi I am trying to put the following commands that i have to type manually at the cshell prompt into a cshell script startup.csh which is copied below


echo $DISPLAY
xhost +
rsh ba08lo01
module load incisiv/102/10.20.035
setenv DISPLAY $DISPLAY


When i run the script with source command as follows

$ source startup.csh


I get the following messages on the cshell

ba08ut01:12:0 #this is the output of first command
access control disabled,clients can connect from any host #output of 2nd command
Last Login Sat, Feb 11, 04:01:22 from ba08ut01 #output of last command


I am wondering why lines 3 and 4 are not getting executed in the startup.csh script. If i type these commands on the command prompt, i see them executing and the messages they print out to the screen.

Is there some thing wrong with the syntax?

Please correct me.

Do i have to modify it a lot in case i want to convert it to bash script.

Thanks a lot for your attention
 
Old 02-10-2012, 07:14 PM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Rep: Reputation: 42
TRy:

$(rsh ba08lo01)
$(module load incisiv/102/10.20.035)
 
1 members found this post helpful.
Old 02-11-2012, 07:05 AM   #3
kaaliakahn
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
dude!

it did not work. I wish it solved the problem.
 
Old 02-11-2012, 01:04 PM   #4
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Rep: Reputation: 42
how are you running the command,as a normal user? ...check if you can run the command as root and as a regular user.
 
Old 02-13-2012, 01:05 AM   #5
kaaliakahn
LQ Newbie
 
Registered: Jan 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I am a regular user. I can not get root permissions. Any idea about the solution?
 
  


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
problem with running tcl script under ns 2.33 manjunath11 Linux - Newbie 56 02-11-2014 09:26 AM
Problem running a program/script in the background from a script newbie01.linux Programming 5 03-28-2011 08:28 AM
Problem running an Expect script within a Bash script mbeipi Programming 8 03-15-2011 05:07 PM
Problem in running a script in CRON senthilvael Linux - Newbie 11 11-21-2007 02:23 PM
Running script problem McGyver Linux - General 6 09-04-2003 07:04 PM


All times are GMT -5. The time now is 06:42 AM.

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