summaryrefslogtreecommitdiffstats
path: root/scpcall.exp
diff options
context:
space:
mode:
authorRenaud Chaillat <rchaillat@mandriva.com>2001-08-31 10:04:25 +0000
committerRenaud Chaillat <rchaillat@mandriva.com>2001-08-31 10:04:25 +0000
commitb5688c80acc26f9d0b218876b3b8dc6b810ea25b (patch)
tree1754bba81eb930d8d27eec345a4f02a44760dbaa /scpcall.exp
parent5e8dc9d1fb60cc90c65bfddbc5d32b31e76c89c0 (diff)
downloadmgaonline-b5688c80acc26f9d0b218876b3b8dc6b810ea25b.tar
mgaonline-b5688c80acc26f9d0b218876b3b8dc6b810ea25b.tar.gz
mgaonline-b5688c80acc26f9d0b218876b3b8dc6b810ea25b.tar.bz2
mgaonline-b5688c80acc26f9d0b218876b3b8dc6b810ea25b.tar.xz
mgaonline-b5688c80acc26f9d0b218876b3b8dc6b810ea25b.zip
now exec drakbug_report and send the results
Diffstat (limited to 'scpcall.exp')
-rwxr-xr-xscpcall.exp13
1 files changed, 7 insertions, 6 deletions
diff --git a/scpcall.exp b/scpcall.exp
index ca76a6cf..0add445c 100755
--- a/scpcall.exp
+++ b/scpcall.exp
@@ -18,20 +18,21 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
####################################################################################
-if "$argc == 3" {
+if "$argc == 4" {
# Get username, host and password from commandline if present.
- set username [lindex $argv 0]
- set host [lindex $argv 1]
- set password [lindex $argv 2]
+ set file [lindex $argv 0]
+ set username [lindex $argv 1]
+ set host [lindex $argv 2]
+ set password [lindex $argv 3]
} else {
- exit 0;
+ exit 2;
}
-spawn /usr/bin/scp $username@$host:~/test .
+spawn /usr/bin/scp $file $username@$host:~/
# The sleep is needed to give passwd time to get ready.
expect {