source:
roaraudio/tools/send-roaraudio
@
1414:5431b63c0772
Last change on this file since 1414:5431b63c0772 was 1414:5431b63c0772, checked in by phi, 15 years ago | |
---|---|
|
|
File size: 324 bytes |
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | REMOTEHOST='' |
4 | REMOTEDIR='.' |
5 | |
6 | while [ "$1" != '' ] |
7 | do |
8 | case "$1" in |
9 | *) |
10 | REMOTEHOST="$1" |
11 | ;; |
12 | esac |
13 | shift |
14 | done |
15 | |
16 | LOCALDIR="sra-@$REMOTEHOST" |
17 | |
18 | mkdir $LOCALDIR |
19 | |
20 | { |
21 | } > $LOCALDIR/setup |
22 | chmod +rx $LOCALDIR/setup |
23 | |
24 | tar -czf - $LOCALDIR | ssh $REMOTEHOST "cd $REMOTEDIR && tar -xvzf - && cd $LOCALDIR && ./setup" |
25 | |
26 | #ll |
Note: See TracBrowser
for help on using the repository browser.