tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp and NT-Emacs with plink


From: Douglas Gray Stephens
Subject: Re: Tramp and NT-Emacs with plink
Date: Wed, 25 Sep 2002 08:54:53 -0500

Kai,

I've noticed another error that sometimes crops up when accessing a
file on a machine that I've used plink on before (e.g. find file),
when the system returns an error
 Buffer *tramp/plink address@hidden has no process

If I repeat the command, tramp kicks off a new session, asking for the
password etc. as normal.

Attached are the tramp and debug buffers (sorry I only have
tramp-verbose set to 9).  I have also trimmed out the base64 encoded
parts from the file uploads to reduce the size of the debug buffer.

Should the error be handled in a more transparent manner?

Cheers,

Douglas.

# Opening connection for address@hidden using plink...
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell
# Sending password
# Found remote shell prompt.
# Initializing remote shell
$ exec env PS1='$ ' /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
exec env 'PS1=$ ' /bin/sh
$ # Setting up remote shell environment
stty -inlcr -echo kill '^U'
$ $ # Determining coding system
foo
bar
$ # Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1'
$ # Waiting 30s for `set +o vi +o emacs'
$ # Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
$ # Waiting 30s for `unset CDPATH'
$ # Setting shell prompt
$ PS1='
/////
'; PS2=''; PS3=''
$ echo ~root
~root
$ while read d; do if test -x $d/bash -a -f $d/bash; then echo tramp_executable 
$d/bash; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
tramp_executable /bin/bash
# Starting remote shell `/bin/bash --norc' for tilde expansion...
$ PS1='$ ' exec /bin/bash --norc
$ # Setting remote shell prompt...
# Setting remote shell prompt...done
# Finding command to check if file exists
$ test -e / 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e /\ this\ file\ does\ not\ exist\  2>/dev/null; echo tramp_exit_status 
$? 
tramp_exit_status 1
# Finding a suitable `ls' command
# Checking remote `/export/home/gray/bin/ls' command for `-n' option
$ test -x /export/home/gray/bin/ls 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
# Checking remote `/bin/ls' command for `-n' option
$ test -x /bin/ls 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...
$ /bin/ls -lnd / >/dev/null 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...okay
# Using remote command `/bin/ls' for getting directory listings
$ tramp_set_exit_status () {
return $1
}
$ test -e /export/home/gray/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /export/home/gray/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/sbin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/sbin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/local/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/local/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /local/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /local/freeware/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /local/gnu/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /usr/freeware/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /usr/pkg/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /usr/contrib/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ 
PATH=/export/home/gray/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin; 
export PATH
$ LC_TIME=C; export LC_TIME; echo huhu
huhu
$ mesg n; echo huhu
huhu
$ biff n ; echo huhu
bash: biff: command not found
huhu
$ unalias ls; echo huhu
bash: unalias: `ls': not an alias
huhu
$ ( test / -nt / )
$ tramp_test_nt () {
test -n "`find $1 -prune -newer $2 -print`"
}
$ tramp_uudecode () {
(echo begin 600 /tmp/tramp.$$; tail +2) | uudecode
cat /tmp/tramp.$$
rm -f /tmp/tramp.$$
}
$ while read d; do if test -x $d/perl5 -a -f $d/perl5; then echo 
tramp_executable $d/perl5; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
$ while read d; do if test -x $d/perl -a -f $d/perl; then echo tramp_executable 
$d/perl; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
tramp_executable /bin/perl
# Sending the Perl `file-attributes' implementation.
$ tramp_file_attributes () {
/bin/perl -e '$f = $ARGV[0];
@s = lstat($f);
if (($s[2] & 0170000) == 0120000) { $l = readlink($f); $l = "\"$l\""; }
elsif (($s[2] & 0170000) == 040000) { $l = "t"; }
else { $l = "nil" };
printf("(%s %u %d %d (%u %u) (%u %u) (%u %u) %u %u t (%u . %u) (%u %u))\n",
$l, $s[3], $s[4], $s[5], $s[8] >> 16 & 0xffff, $s[8] & 0xffff,
$s[9] >> 16 & 0xffff, $s[9] & 0xffff, $s[10] >> 16 & 0xffff, $s[10] & 0xffff,
$s[7], $s[2], $s[1] >> 16 & 0xffff, $s[1] & 0xffff, $s[0] >> 16 & 0xffff, $s[0] 
& 0xffff);' $1 2>/dev/null
}
# Sending the Perl `mime-encode' implementations.
$ tramp_encode () {
/bin/perl -e '
# This script contributed by Juanma Barranquero <address@hidden>.
# Copyright (C) 2002 Free Software Foundation, Inc.
use strict;

my %trans = do {
    my $i = 0;
    map {(substr(unpack(q(B8), chr $i++), 2, 6), $_)}
      split //, 
q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/);
};

binmode(\*STDIN);

# We read in chunks of 54 bytes, to generate output lines
# of 72 chars (plus end of line)
$/ = \54;

while (my $data = <STDIN>) {
    my $pad = q();

    # Only for the last chunk, and only if did not fill the last three-byte 
packet
    if (eof) {
        my $mod = length($data) % 3;
        $pad = q(=) x (3 - $mod) if $mod;
    }

    # Not the fastest method, but it is simple: unpack to binary string, split
    # by groups of 6 bits and convert back from binary to byte; then map into
    # the translation table
    print
      join q(),
        map($trans{$_},
            (substr(unpack(q(B*), $data) . q(00000), 0, 432) =~ /....../g)),
              $pad,
                qq(\n);
}
' 2>/dev/null
}
$ tramp_encode_with_module () {
perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)' 2>/dev/null
}
# Sending the Perl `mime-decode' implementations.
$ tramp_decode () {
/bin/perl -e '
# This script contributed by Juanma Barranquero <address@hidden>.
# Copyright (C) 2002 Free Software Foundation, Inc.
use strict;

my %trans = do {
    my $i = 0;
    map {($_, substr(unpack(q(B8), chr $i++), 2, 6))}
      split //, 
q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/)
};

my %bytes = map {(unpack(q(B8), chr $_), chr $_)} 0 .. 255;

binmode(\*STDOUT);

# We are going to accumulate into $pending to accept any line length
# (we do not check they are <= 76 chars as the RFC says)
my $pending = q();

while (my $data = <STDIN>) {
    chomp $data;

    # If we find one or two =, we have reached the end and
    # any following data is to be discarded
    my $finished = $data =~ s/(==?).*/$1/;
    $pending .= $data;

    my $len = length($pending);
    my $chunk = substr($pending, 0, $len & ~3);

    # Easy method: translate from chars to (pregenerated) six-bit packets, join,
    # split in 8-bit chunks and convert back to char.
    print join q(),
      map $bytes{$_},
        ((join q(), map {$trans{$_} || q()} split //, $chunk) =~ /......../g);

    last if $finished;
}
' 2>/dev/null
}
$ tramp_decode_with_module () {
perl -MMIME::Base64 -0777 -ne 'print decode_base64($_)' 2>/dev/null
}
$ while read d; do if test -x $d/ln -a -f $d/ln; then echo tramp_executable 
$d/ln; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
tramp_executable /bin/ln
# Checking remote encoding command `mimencode -b' for sanity
$ ( mimencode -b </dev/null >/dev/null 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
# Checking remote decoding command `mimencode -u -b' for sanity
$ ( echo xyzzy | mimencode -b | mimencode -u -b >/dev/null 2>/dev/null; echo 
tramp_exit_status $? )
tramp_exit_status 0
# Checking to see if encoding/decoding commands work on remote host...
$ echo xyzzy | mimencode -b | mimencode -u -b
xyzzy
# Checking to see if encoding/decoding commands work on remote host...done
$ cd ~; pwd
/export/home/gray
$ cd /export/home/gray/public_html/ 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ /bin/ls -a -d test-g* 2>/dev/null | while read f; do if test -d "$f" 
2>/dev/null; then echo "$f/"; else echo "$f"; fi; done
test-group-020911/
$ cd
$ cd ~; pwd
/export/home/gray
$ cd ~; pwd
/export/home/gray
$ test -e /export/home/gray/public_html/test-group-020911/ 2>/dev/null; echo 
tramp_exit_status $? 
tramp_exit_status 0
$ echo are you awake
are you awake
$ cd ~; pwd
/export/home/gray
$ ( test -d 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 1
$ cd ~; pwd
/export/home/gray
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ cd ~; pwd
/export/home/gray
$ test -e /export 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export
(t 4 0 3 (15755 27748) (15669 41634) (15669 41634) 512 16877 t (1 . 23424) (128 
128))
$ test -e /export/home 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home
(t 15 0 0 (15759 39495) (15714 53193) (15714 53193) 512 16877 t (0 . 2) (128 
133))
$ test -e /export/home/gray 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray
(t 9 15002 1 (15758 46968) (15758 47073) (15758 47073) 1536 16877 t (3 . 23069) 
(128 133))
$ test -e /export/home/gray/public_html 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html
(t 11 15002 1 (15760 17500) (15743 15393) (15743 15393) 512 16877 t (3 . 45584) 
(128 133))
$ test -e /export/home/gray/public_html/test-group-020911 2>/dev/null; echo 
tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html/test-group-020911
(t 3 15002 15000 (15757 31005) (15743 15624) (15743 15624) 2560 16877 t (6 . 
34909) (128 133))
$ test -e /export/home/gray/public_html/test-group-020911/admin 2>/dev/null; 
echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html/test-group-020911/admin
(t 3 15002 15000 (15757 31010) (15743 15684) (15743 15684) 512 16877 t (6 . 
46177) (128 133))
$ test -e /export/home/gray/public_html/test-group-020911/admin/groups 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups
(t 2 15002 15000 (15757 31012) (15755 10383) (15755 10383) 1024 16877 t (6 . 
51818) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm
(nil 1 15002 15000 (15760 17721) (15755 10383) (15755 10383) 50419 33188 t (6 . 
51857) (128 133))
$ test -e /export 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export
(t 4 0 3 (15755 27748) (15669 41634) (15669 41634) 512 16877 t (1 . 23424) (128 
128))
$ test -e /export/home 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home
(t 15 0 0 (15759 39495) (15714 53193) (15714 53193) 512 16877 t (0 . 2) (128 
133))
$ test -e /export/home/gray 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray
(t 9 15002 1 (15758 46968) (15758 47073) (15758 47073) 1536 16877 t (3 . 23069) 
(128 133))
$ test -e /export/home/gray/public_html 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html
(t 11 15002 1 (15760 17500) (15743 15393) (15743 15393) 512 16877 t (3 . 45584) 
(128 133))
$ test -e /export/home/gray/public_html/test-group-020911 2>/dev/null; echo 
tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html/test-group-020911
(t 3 15002 15000 (15757 31005) (15743 15624) (15743 15624) 2560 16877 t (6 . 
34909) (128 133))
$ test -e /export/home/gray/public_html/test-group-020911/admin 2>/dev/null; 
echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html/test-group-020911/admin
(t 3 15002 15000 (15757 31010) (15743 15684) (15743 15684) 512 16877 t (6 . 
46177) (128 133))
$ test -e /export/home/gray/public_html/test-group-020911/admin/groups 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups
(t 2 15002 15000 (15757 31012) (15755 10383) (15755 10383) 1024 16877 t (6 . 
51818) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm
(nil 1 15002 15000 (15760 17721) (15755 10383) (15755 10383) 50419 33188 t (6 . 
51857) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm
(nil 1 15002 15000 (15760 17721) (15755 10383) (15755 10383) 50419 33188 t (6 . 
51857) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm
(nil 1 15002 15000 (15760 17721) (15755 10383) (15755 10383) 50419 33188 t (6 . 
51857) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm
(nil 1 15002 15000 (15760 17721) (15755 10383) (15755 10383) 50419 33188 t (6 . 
51857) (128 133))
$ cd /export/home/gray/public_html/test-group-020911/admin/groups/ 2>/dev/null; 
echo tramp_exit_status $? 
tramp_exit_status 0
$ /bin/ls -a -d grpglobal.pm.\~* 2>/dev/null | while read f; do if test -d "$f" 
2>/dev/null; then echo "$f/"; else echo "$f"; fi; done
grpglobal.pm.~1~
$ cd
$ mv -f 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm.\~1.\~
 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm.\~1.\~
 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm.\~1.\~
 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm.\~1.\~
(nil 1 15002 15000 (15760 17721) (15755 10383) (15760 17750) 50419 33188 t (6 . 
51857) (128 133))
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
<<'EOF'
# Sending data to remote host...
 <snip>

$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm
(nil 1 15002 15000 (15760 17784) (15760 17784) (15760 17784) 50671 33188 t (6 . 
51855) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm
(nil 1 15002 15000 (15760 17784) (15760 17784) (15760 17784) 50671 33188 t (6 . 
51855) (128 133))
$ chmod 0644 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/RCS/grpglobal.pm\,v
 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpglobal.pm\,v 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/RCS/grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/SCCS/s.grpglobal.pm
 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/s.grpglobal.pm 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ ( test -d /export/home/gray/public_html/test-group-020911/admin/groups/CVS 
2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 1
$ echo are you awake
are you awake
$ cd ~; pwd
/export/home/gray
$ ( test -d 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 1
$ cd ~; pwd
/export/home/gray
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ cd ~; pwd
/export/home/gray
$ test -e /export 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export
(t 4 0 3 (15755 27748) (15669 41634) (15669 41634) 512 16877 t (1 . 23424) (128 
128))
$ test -e /export/home 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home
(t 15 0 0 (15759 39495) (15714 53193) (15714 53193) 512 16877 t (0 . 2) (128 
133))
$ test -e /export/home/gray 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray
(t 9 15002 1 (15758 46968) (15758 47073) (15758 47073) 1536 16877 t (3 . 23069) 
(128 133))
$ test -e /export/home/gray/public_html 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html
(t 11 15002 1 (15760 17500) (15743 15393) (15743 15393) 512 16877 t (3 . 45584) 
(128 133))
$ test -e /export/home/gray/public_html/test-group-020911 2>/dev/null; echo 
tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html/test-group-020911
(t 3 15002 15000 (15757 31005) (15743 15624) (15743 15624) 2560 16877 t (6 . 
34909) (128 133))
$ test -e /export/home/gray/public_html/test-group-020911/admin 2>/dev/null; 
echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html/test-group-020911/admin
(t 3 15002 15000 (15757 31010) (15743 15684) (15743 15684) 512 16877 t (6 . 
46177) (128 133))
$ test -e /export/home/gray/public_html/test-group-020911/admin/groups 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups
(t 2 15002 15000 (15760 17750) (15760 17784) (15760 17784) 1024 16877 t (6 . 
51818) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 17723) (15753 48386) (15753 48386) 59498 33261 t (6 . 
51858) (128 133))
$ test -e /export 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export
(t 4 0 3 (15755 27748) (15669 41634) (15669 41634) 512 16877 t (1 . 23424) (128 
128))
$ test -e /export/home 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home
(t 15 0 0 (15759 39495) (15714 53193) (15714 53193) 512 16877 t (0 . 2) (128 
133))
$ test -e /export/home/gray 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray
(t 9 15002 1 (15758 46968) (15758 47073) (15758 47073) 1536 16877 t (3 . 23069) 
(128 133))
$ test -e /export/home/gray/public_html 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html
(t 11 15002 1 (15760 17500) (15743 15393) (15743 15393) 512 16877 t (3 . 45584) 
(128 133))
$ test -e /export/home/gray/public_html/test-group-020911 2>/dev/null; echo 
tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html/test-group-020911
(t 3 15002 15000 (15757 31005) (15743 15624) (15743 15624) 2560 16877 t (6 . 
34909) (128 133))
$ test -e /export/home/gray/public_html/test-group-020911/admin 2>/dev/null; 
echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes /export/home/gray/public_html/test-group-020911/admin
(t 3 15002 15000 (15757 31010) (15743 15684) (15743 15684) 512 16877 t (6 . 
46177) (128 133))
$ test -e /export/home/gray/public_html/test-group-020911/admin/groups 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups
(t 2 15002 15000 (15760 17750) (15760 17784) (15760 17784) 1024 16877 t (6 . 
51818) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 17723) (15753 48386) (15753 48386) 59498 33261 t (6 . 
51858) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 17723) (15753 48386) (15753 48386) 59498 33261 t (6 . 
51858) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 17723) (15753 48386) (15753 48386) 59498 33261 t (6 . 
51858) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 17723) (15753 48386) (15753 48386) 59498 33261 t (6 . 
51858) (128 133))
$ cd /export/home/gray/public_html/test-group-020911/admin/groups/ 2>/dev/null; 
echo tramp_exit_status $? 
tramp_exit_status 0
$ /bin/ls -a -d grpter.pl.\~* 2>/dev/null | while read f; do if test -d "$f" 
2>/dev/null; then echo "$f/"; else echo "$f"; fi; done
grpter.pl.~1.~
grpter.pl.~1~
grpter.pl.~2.~
grpter.pl.~2~
$ cd
$ mv -f /export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl.\~3.\~ 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl.\~3.\~ 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl.\~3.\~ 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl.\~3.\~
(nil 1 15002 15000 (15760 17723) (15753 48386) (15760 17914) 59498 33261 t (6 . 
51858) (128 133))
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>

$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 17954) (15760 17954) (15760 17954) 61762 33188 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 17954) (15760 17954) (15760 17954) 61762 33188 t (6 . 
51860) (128 133))
$ chmod 0755 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/RCS/grpter.pl\,v 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl\,v 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/RCS/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/SCCS/s.grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/s.grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ ( test -d /export/home/gray/public_html/test-group-020911/admin/groups/CVS 
2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 1
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 18259) (15760 17954) (15760 17958) 61762 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 18259) (15760 17954) (15760 17958) 61762 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>
# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 18259) (15760 18302) (15760 18302) 61763 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 18259) (15760 18302) (15760 18302) 61763 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 20734) (15760 18302) (15760 18302) 61763 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 20734) (15760 20800) (15760 20800) 59559 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 20734) (15760 20800) (15760 20800) 59559 33261 t (6 . 
51860) (128 133))
$ echo are you awake
# Opening connection for address@hidden using plink...
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell
# Sending password
# Found remote shell prompt.
# Initializing remote shell
$ exec env PS1='$ ' /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
exec env 'PS1=$ ' /bin/sh
$ # Setting up remote shell environment
stty -inlcr -echo kill '^U'
$ $ # Determining coding system
foo
bar
$ # Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1'
$ # Waiting 30s for `set +o vi +o emacs'
$ # Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
$ # Waiting 30s for `unset CDPATH'
$ # Setting shell prompt
$ PS1='
/////
'; PS2=''; PS3=''
$ echo ~root
~root
$ while read d; do if test -x $d/bash -a -f $d/bash; then echo tramp_executable 
$d/bash; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
tramp_executable /bin/bash
# Starting remote shell `/bin/bash --norc' for tilde expansion...
$ PS1='$ ' exec /bin/bash --norc
$ # Setting remote shell prompt...
# Setting remote shell prompt...done
# Finding command to check if file exists
$ test -e / 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e /\ this\ file\ does\ not\ exist\  2>/dev/null; echo tramp_exit_status 
$? 
tramp_exit_status 1
# Finding a suitable `ls' command
# Checking remote `/export/home/gray/bin/ls' command for `-n' option
$ test -x /export/home/gray/bin/ls 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
# Checking remote `/bin/ls' command for `-n' option
$ test -x /bin/ls 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...
$ /bin/ls -lnd / >/dev/null 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...okay
# Using remote command `/bin/ls' for getting directory listings
$ tramp_set_exit_status () {
return $1
}
$ test -e /export/home/gray/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /export/home/gray/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/sbin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/sbin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/local/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/local/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /local/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /local/freeware/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /local/gnu/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /usr/freeware/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /usr/pkg/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /usr/contrib/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ 
PATH=/export/home/gray/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin; 
export PATH
$ LC_TIME=C; export LC_TIME; echo huhu
huhu
$ mesg n; echo huhu
huhu
$ biff n ; echo huhu
bash: biff: command not found
huhu
$ unalias ls; echo huhu
bash: unalias: `ls': not an alias
huhu
$ ( test / -nt / )
$ tramp_test_nt () {
test -n "`find $1 -prune -newer $2 -print`"
}
$ tramp_uudecode () {
(echo begin 600 /tmp/tramp.$$; tail +2) | uudecode
cat /tmp/tramp.$$
rm -f /tmp/tramp.$$
}
$ while read d; do if test -x $d/perl5 -a -f $d/perl5; then echo 
tramp_executable $d/perl5; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
$ while read d; do if test -x $d/perl -a -f $d/perl; then echo tramp_executable 
$d/perl; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
tramp_executable /bin/perl
# Sending the Perl `file-attributes' implementation.
$ tramp_file_attributes () {
/bin/perl -e '$f = $ARGV[0];
@s = lstat($f);
if (($s[2] & 0170000) == 0120000) { $l = readlink($f); $l = "\"$l\""; }
elsif (($s[2] & 0170000) == 040000) { $l = "t"; }
else { $l = "nil" };
printf("(%s %u %d %d (%u %u) (%u %u) (%u %u) %u %u t (%u . %u) (%u %u))\n",
$l, $s[3], $s[4], $s[5], $s[8] >> 16 & 0xffff, $s[8] & 0xffff,
$s[9] >> 16 & 0xffff, $s[9] & 0xffff, $s[10] >> 16 & 0xffff, $s[10] & 0xffff,
$s[7], $s[2], $s[1] >> 16 & 0xffff, $s[1] & 0xffff, $s[0] >> 16 & 0xffff, $s[0] 
& 0xffff);' $1 2>/dev/null
}
# Sending the Perl `mime-encode' implementations.
$ tramp_encode () {
/bin/perl -e '
# This script contributed by Juanma Barranquero <address@hidden>.
# Copyright (C) 2002 Free Software Foundation, Inc.
use strict;

my %trans = do {
    my $i = 0;
    map {(substr(unpack(q(B8), chr $i++), 2, 6), $_)}
      split //, 
q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/);
};

binmode(\*STDIN);

# We read in chunks of 54 bytes, to generate output lines
# of 72 chars (plus end of line)
$/ = \54;

while (my $data = <STDIN>) {
    my $pad = q();

    # Only for the last chunk, and only if did not fill the last three-byte 
packet
    if (eof) {
        my $mod = length($data) % 3;
        $pad = q(=) x (3 - $mod) if $mod;
    }

    # Not the fastest method, but it is simple: unpack to binary string, split
    # by groups of 6 bits and convert back from binary to byte; then map into
    # the translation table
    print
      join q(),
        map($trans{$_},
            (substr(unpack(q(B*), $data) . q(00000), 0, 432) =~ /....../g)),
              $pad,
                qq(\n);
}
' 2>/dev/null
}
$ tramp_encode_with_module () {
perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)' 2>/dev/null
}
# Sending the Perl `mime-decode' implementations.
$ tramp_decode () {
/bin/perl -e '
# This script contributed by Juanma Barranquero <address@hidden>.
# Copyright (C) 2002 Free Software Foundation, Inc.
use strict;

my %trans = do {
    my $i = 0;
    map {($_, substr(unpack(q(B8), chr $i++), 2, 6))}
      split //, 
q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/)
};

my %bytes = map {(unpack(q(B8), chr $_), chr $_)} 0 .. 255;

binmode(\*STDOUT);

# We are going to accumulate into $pending to accept any line length
# (we do not check they are <= 76 chars as the RFC says)
my $pending = q();

while (my $data = <STDIN>) {
    chomp $data;

    # If we find one or two =, we have reached the end and
    # any following data is to be discarded
    my $finished = $data =~ s/(==?).*/$1/;
    $pending .= $data;

    my $len = length($pending);
    my $chunk = substr($pending, 0, $len & ~3);

    # Easy method: translate from chars to (pregenerated) six-bit packets, join,
    # split in 8-bit chunks and convert back to char.
    print join q(),
      map $bytes{$_},
        ((join q(), map {$trans{$_} || q()} split //, $chunk) =~ /......../g);

    last if $finished;
}
' 2>/dev/null
}
$ tramp_decode_with_module () {
perl -MMIME::Base64 -0777 -ne 'print decode_base64($_)' 2>/dev/null
}
$ while read d; do if test -x $d/ln -a -f $d/ln; then echo tramp_executable 
$d/ln; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
tramp_executable /bin/ln
# Checking remote encoding command `mimencode -b' for sanity
$ ( mimencode -b </dev/null >/dev/null 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
# Checking remote decoding command `mimencode -u -b' for sanity
$ ( echo xyzzy | mimencode -b | mimencode -u -b >/dev/null 2>/dev/null; echo 
tramp_exit_status $? )
tramp_exit_status 0
# Checking to see if encoding/decoding commands work on remote host...
$ echo xyzzy | mimencode -b | mimencode -u -b
xyzzy
# Checking to see if encoding/decoding commands work on remote host...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 46404) (15760 20800) (15760 20800) 59559 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 46523) (15760 20800) (15760 20800) 59559 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 46523) (15760 46532) (15760 46532) 59574 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 46523) (15760 46532) (15760 46532) 59574 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 46523) (15760 46532) (15760 46532) 59574 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 46523) (15760 46532) (15760 46532) 59574 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 46523) (15760 46919) (15760 46919) 59653 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 46523) (15760 46919) (15760 46919) 59653 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 49283) (15760 46919) (15760 46919) 59653 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 49403) (15760 46919) (15760 46919) 59653 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 49403) (15760 49439) (15760 49439) 59561 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 49403) (15760 49439) (15760 49439) 59561 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 49764) (15760 49439) (15760 49439) 59561 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 49764) (15760 49439) (15760 49439) 59561 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 49885) (15760 49890) (15760 49890) 59605 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15760 49885) (15760 49890) (15760 49890) 59605 33261 t (6 . 
51860) (128 133))
$ echo are you awake
# Opening connection for address@hidden using plink...
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell
# Sending password
# Found remote shell prompt.
# Initializing remote shell
$ exec env PS1='$ ' /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
exec env 'PS1=$ ' /bin/sh
$ # Setting up remote shell environment
stty -inlcr -echo kill '^U'
$ $ # Determining coding system
foo
bar
$ # Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1'
$ # Waiting 30s for `set +o vi +o emacs'
$ # Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
$ # Waiting 30s for `unset CDPATH'
$ # Setting shell prompt
$ PS1='
/////
'; PS2=''; PS3=''
$ echo ~root
~root
$ while read d; do if test -x $d/bash -a -f $d/bash; then echo tramp_executable 
$d/bash; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
tramp_executable /bin/bash
# Starting remote shell `/bin/bash --norc' for tilde expansion...
$ PS1='$ ' exec /bin/bash --norc
$ # Setting remote shell prompt...
# Setting remote shell prompt...done
# Finding command to check if file exists
$ test -e / 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -e /\ this\ file\ does\ not\ exist\  2>/dev/null; echo tramp_exit_status 
$? 
tramp_exit_status 1
# Finding a suitable `ls' command
# Checking remote `/export/home/gray/bin/ls' command for `-n' option
$ test -x /export/home/gray/bin/ls 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
# Checking remote `/bin/ls' command for `-n' option
$ test -x /bin/ls 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...
$ /bin/ls -lnd / >/dev/null 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...okay
# Using remote command `/bin/ls' for getting directory listings
$ tramp_set_exit_status () {
return $1
}
$ test -e /export/home/gray/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /export/home/gray/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/sbin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/sbin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/local/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/local/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ ( test -d /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ test -e /local/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /local/freeware/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /local/gnu/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /usr/freeware/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /usr/pkg/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ test -e /usr/contrib/bin 2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 1
$ 
PATH=/export/home/gray/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin; 
export PATH
$ LC_TIME=C; export LC_TIME; echo huhu
huhu
$ mesg n; echo huhu
huhu
$ biff n ; echo huhu
bash: biff: command not found
huhu
$ unalias ls; echo huhu
bash: unalias: `ls': not an alias
huhu
$ ( test / -nt / )
$ tramp_test_nt () {
test -n "`find $1 -prune -newer $2 -print`"
}
$ tramp_uudecode () {
(echo begin 600 /tmp/tramp.$$; tail +2) | uudecode
cat /tmp/tramp.$$
rm -f /tmp/tramp.$$
}
$ while read d; do if test -x $d/perl5 -a -f $d/perl5; then echo 
tramp_executable $d/perl5; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
$ while read d; do if test -x $d/perl -a -f $d/perl; then echo tramp_executable 
$d/perl; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
tramp_executable /bin/perl
# Sending the Perl `file-attributes' implementation.
$ tramp_file_attributes () {
/bin/perl -e '$f = $ARGV[0];
@s = lstat($f);
if (($s[2] & 0170000) == 0120000) { $l = readlink($f); $l = "\"$l\""; }
elsif (($s[2] & 0170000) == 040000) { $l = "t"; }
else { $l = "nil" };
printf("(%s %u %d %d (%u %u) (%u %u) (%u %u) %u %u t (%u . %u) (%u %u))\n",
$l, $s[3], $s[4], $s[5], $s[8] >> 16 & 0xffff, $s[8] & 0xffff,
$s[9] >> 16 & 0xffff, $s[9] & 0xffff, $s[10] >> 16 & 0xffff, $s[10] & 0xffff,
$s[7], $s[2], $s[1] >> 16 & 0xffff, $s[1] & 0xffff, $s[0] >> 16 & 0xffff, $s[0] 
& 0xffff);' $1 2>/dev/null
}
# Sending the Perl `mime-encode' implementations.
$ tramp_encode () {
/bin/perl -e '
# This script contributed by Juanma Barranquero <address@hidden>.
# Copyright (C) 2002 Free Software Foundation, Inc.
use strict;

my %trans = do {
    my $i = 0;
    map {(substr(unpack(q(B8), chr $i++), 2, 6), $_)}
      split //, 
q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/);
};

binmode(\*STDIN);

# We read in chunks of 54 bytes, to generate output lines
# of 72 chars (plus end of line)
$/ = \54;

while (my $data = <STDIN>) {
    my $pad = q();

    # Only for the last chunk, and only if did not fill the last three-byte 
packet
    if (eof) {
        my $mod = length($data) % 3;
        $pad = q(=) x (3 - $mod) if $mod;
    }

    # Not the fastest method, but it is simple: unpack to binary string, split
    # by groups of 6 bits and convert back from binary to byte; then map into
    # the translation table
    print
      join q(),
        map($trans{$_},
            (substr(unpack(q(B*), $data) . q(00000), 0, 432) =~ /....../g)),
              $pad,
                qq(\n);
}
' 2>/dev/null
}
$ tramp_encode_with_module () {
perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)' 2>/dev/null
}
# Sending the Perl `mime-decode' implementations.
$ tramp_decode () {
/bin/perl -e '
# This script contributed by Juanma Barranquero <address@hidden>.
# Copyright (C) 2002 Free Software Foundation, Inc.
use strict;

my %trans = do {
    my $i = 0;
    map {($_, substr(unpack(q(B8), chr $i++), 2, 6))}
      split //, 
q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/)
};

my %bytes = map {(unpack(q(B8), chr $_), chr $_)} 0 .. 255;

binmode(\*STDOUT);

# We are going to accumulate into $pending to accept any line length
# (we do not check they are <= 76 chars as the RFC says)
my $pending = q();

while (my $data = <STDIN>) {
    chomp $data;

    # If we find one or two =, we have reached the end and
    # any following data is to be discarded
    my $finished = $data =~ s/(==?).*/$1/;
    $pending .= $data;

    my $len = length($pending);
    my $chunk = substr($pending, 0, $len & ~3);

    # Easy method: translate from chars to (pregenerated) six-bit packets, join,
    # split in 8-bit chunks and convert back to char.
    print join q(),
      map $bytes{$_},
        ((join q(), map {$trans{$_} || q()} split //, $chunk) =~ /......../g);

    last if $finished;
}
' 2>/dev/null
}
$ tramp_decode_with_module () {
perl -MMIME::Base64 -0777 -ne 'print decode_base64($_)' 2>/dev/null
}
$ while read d; do if test -x $d/ln -a -f $d/ln; then echo tramp_executable 
$d/ln; break; fi; done <<'EOF'
$ /export/home/gray/bin
$ /bin
$ /usr/bin
$ /usr/sbin
$ /usr/local/bin
$ /usr/ccs/bin
$ /local/bin
$ /local/freeware/bin
$ /local/gnu/bin
$ /usr/freeware/bin
$ /usr/pkg/bin
$ /usr/contrib/bin
$ EOF
tramp_executable /bin/ln
# Checking remote encoding command `mimencode -b' for sanity
$ ( mimencode -b </dev/null >/dev/null 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
# Checking remote decoding command `mimencode -u -b' for sanity
$ ( echo xyzzy | mimencode -b | mimencode -u -b >/dev/null 2>/dev/null; echo 
tramp_exit_status $? )
tramp_exit_status 0
# Checking to see if encoding/decoding commands work on remote host...
$ echo xyzzy | mimencode -b | mimencode -u -b
xyzzy
# Checking to see if encoding/decoding commands work on remote host...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 12431) (15760 49890) (15760 49890) 59605 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 12669) (15760 49890) (15760 49890) 59605 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 12789) (15761 12808) (15761 12808) 59922 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 12789) (15761 12808) (15761 12808) 59922 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 12908) (15761 12808) (15761 12808) 59922 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 13030) (15761 12808) (15761 12808) 59922 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>
# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 13030) (15761 13081) (15761 13081) 60065 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 13030) (15761 13081) (15761 13081) 60065 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 43271) (15761 13081) (15761 13081) 60065 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 43512) (15761 13081) (15761 13081) 60065 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip> 

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 43512) (15761 43549) (15761 43549) 60235 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 43512) (15761 43549) (15761 43549) 60235 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 43869) (15761 43549) (15761 43549) 60235 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 43988) (15761 43549) (15761 43549) 60235 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...

 <snip>

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 43988) (15761 44103) (15761 44103) 60158 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 43988) (15761 44103) (15761 44103) 60158 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45067) (15761 44103) (15761 44103) 60158 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45067) (15761 44103) (15761 44103) 60158 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45067) (15761 45144) (15761 45144) 60171 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45067) (15761 45144) (15761 45144) 60171 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45668) (15761 45144) (15761 45144) 60171 33261 t (6 . 
51860) (128 133))
$ echo are you awake
are you awake
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45787) (15761 45144) (15761 45144) 60171 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...
 <snip>

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45787) (15761 45939) (15761 45939) 60221 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45787) (15761 45939) (15761 45939) 60221 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45945) (15761 45939) (15761 45939) 60221 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45945) (15761 45939) (15761 45939) 60221 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ test -w 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
# Encoding region...
# Encoding region using function...
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...
$ mimencode -u -b 
>/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl <<'EOF'
# Sending data to remote host...

 <snip>

# Sending end of data token...
$ EOF
# Waiting for remote host to process data...
$ echo are you awake
are you awake
$ echo tramp_exit_status $? 
tramp_exit_status 0
# Decoding region into remote file 
/plink:address@hidden:/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl...done
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45945) (15761 46005) (15761 46005) 60211 33261 t (6 . 
51860) (128 133))
$ test -e 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl 
2>/dev/null; echo tramp_exit_status $? 
tramp_exit_status 0
$ tramp_file_attributes 
/export/home/gray/public_html/test-group-020911/admin/groups/grpter.pl
(nil 1 15002 15000 (15761 45945) (15761 46005) (15761 46005) 60211 33261 t (6 . 
51860) (128 133))
$ echo are you awake
-- 

================================
Douglas GRAY STEPHENS        
Technical Architect (Directories)
Schlumberger Cambridge Research
High Cross,
Madingley Road,
Cambridge.
CB3 0EL
ENGLAND

Phone  +44 1223 325295
Mobile +44 773 0051628
Fax    +44 1223 311830
Email address@hidden
================================

reply via email to

[Prev in Thread] Current Thread [Next in Thread]