Skip to main content

All Questions

Tagged with
2 votes
1 answer
194 views

What does \!^ in csh alias do

Note: my shell is csh An ex-co-worker gave me the following command to put in my .cshrc: alias bastion 'ssh -L \!^\:<some_ip_address> <username>@<something.com>' Note that what is in ...
KetDog's user avatar
  • 137
0 votes
0 answers
57 views

ssh session exits when cd command fails

I connect to a remote host using ssh. After connecting, if a cd command fails like below, my ssh connection exits right away. How can I prevent this from happening? scott@mac % ssh remotehost Last ...
lambda's user avatar
  • 101
0 votes
1 answer
2k views

Without nohup on csh, background job still running after ssh exits

I'm trying to understand the need for using nohup with background commands in ssh. My shell is csh on CentOS. The background command below continues running even after ssh exits. I was expecting this ...
neo_coder's user avatar
1 vote
1 answer
221 views

How to avoid 'ambigous redirect' when executing command over ssh

I'm trying to execute a script on a remote server via ssh. the command should go to the background and continue to run after logout. The result of the command should be redireced to out.log on the ...
murphy's user avatar
  • 345
2 votes
2 answers
6k views

Login via ssh does not source the .cshrc file in my home directory (MobaXTerm Professional)

During my login to my Linux environment via ssh the .cshrc file in my home directory is not read. Each time I had to read this file after login via source ~/.cshrc I use MobaXTerm Professional 10.5 ...
Frank's user avatar
  • 121
0 votes
1 answer
834 views

ssh command in background

Please help in following. I am doing ssh user@server "source script.csh" from my home server Let us suppose script.csh contains 10 commands : 1st to 3rd command runs instantaneously 4th command ...
Saurabh Varshney's user avatar
15 votes
2 answers
18k views

Is it possible to send a HEREDOC over ssh to a remote host from inside a script running locally?

I essentially want to run a script on machine A which will SSH into machine B, execute commands on B, and return the output to machine A. So I am creating a csh script to do this, hopefully, if it's ...
krb686's user avatar
  • 559