scp script

Aug. 3rd, 2007 02:45 pm
gusl: (Default)
[personal profile] gusl
The ICA project needs now needs a large number of simulations, all for the sake of determining the optimal alpha level (confidence level for pruning edges) for different conditions (we are optimizing over like 7 dimensions: sample size, distribution, max # of parents, etc.). I expect this may need to run somewhere from 2-5 days.

So I called CS Helpdesk, and turns out I can use a General Purpose machine, i.e. linux.gp.cs.cmu.edu .

I copied over the JAR and adapted my script to run there (after fixing permissions with chmod).

However, since I will probably need to do several pilot runs first, I will need a command-line script to update the JAR.

Here's my attempts:
bash-3.2$ scp ./build/tetrad/upload/tetrad-* gusl@linux.gp.cs.cmu.edu:~
bash: [1300: 1] tcsetattr: Inappropriate ioctl for device

[1]+  Stopped                 scp ./build/tetrad/upload/tetrad-* gusl@linux.gp.cs.cmu.edu:~
bash-3.2$ 
bash-3.2$ scp ./build/tetrad/upload/tetrad-* gusl@linux.gp.cs.cmu.edu:~/
bash: [1300: 1] tcsetattr: Inappropriate ioctl for device

[2]+  Stopped                 scp ./build/tetrad/upload/tetrad-* gusl@linux.gp.cs.cmu.edu:~/
bash-3.2$ scp ./build/tetrad/upload/tetrad-* gusl@linux.gp.cs.cmu.edu:~/tetrad.jar
bash: [1300: 1] tcsetattr: Inappropriate ioctl for device

[3]+  Stopped                 scp ./build/tetrad/upload/tetrad-* gusl@linux.gp.cs.cmu.edu:~/tetrad.jar


Any clue what this means?

I just want to copy that file matching ./build/tetrad/upload/tetrad-* to my AFS home directory.

UPDATE: I should add that this shell is not logged in to my AFS. So I would need to type in my password every time I run the script... unless there is a better way.

UPDATE for myself:

thanks to [livejournal.com profile] dachte:
in cygwin
scp ./build/tetrad/upload/tetrad-*.jar gusl@linux.gp.cs.cmu.edu:~/

More notes:
* Use WinSCP to see my AFS space
* Use OpenSSH to get the remote shell

(no subject)

Date: 2007-08-04 04:17 am (UTC)
From: [identity profile] cdtwigg.livejournal.com
also in tcsh you get weird errors if you don't wrap wildcard arguments for remote files in single quotes because the shell tries to expand them and of course can't.

February 2020

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags