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 08-20-2008, 10:05 AM   #1
rhaynesak
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Question Directory context within cshell


I'm trying to submit jobs to a supercomputer from a Rails application. Using ruby net/scp and net/ssh I've managed to upload contained simulations to the cluster. To start these jobs I would like to do:

ssh.exec! "csh /Volumes/RAID/Exoplanet/running_sims/system_id_5_sim_number_1/start_mercury.csh"

For some reason the ssh module I'm using won't operate outside the context of the users home directory.

If it did I could cd into the simulation root dir and do ./start_mercury.csh

In short is there a way to tell the script to operate within the context of its own directory and not use the users directory as its root?
 
Old 08-20-2008, 12:42 PM   #2
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 44
It is difficult to give a more detailed reply without more details about the specific instance but, in general, you should be able to include some commands in the start script to source the desired user's profile and to change directory to that user's home (or wherever), if the permissions and groups for that user and the ssh user all match up ok.
 
  


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
obfuscator for cshell. DoME69 Programming 1 07-02-2008 07:23 AM
Where is good old cshell? Ken882 Linux - Newbie 4 04-13-2007 08:54 AM
Default UID / GID / Security Context for httpd root directory rioguia Linux - Security 1 05-09-2006 12:26 PM
[cshell] awk help! saiz66 Programming 3 09-28-2004 06:55 PM
Cshell querying two files... HiOctane21 Programming 1 05-01-2004 07:19 PM

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

All times are GMT -5. The time now is 10:30 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
Open Source Consulting | Domain Registration