[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tramp_file_attributes
From: |
Sven Gabriel |
Subject: |
tramp_file_attributes |
Date: |
Mon, 14 Jul 2003 14:49:46 +0200 |
User-agent: |
KMail/1.4.3 |
Hi,
I'm using tramp-2.0.35.
It works fine to an alpha workstation, connecting to a fujitsu-siemens vector
maschine results in a Memory fault after tramp_file_attributes...
the funny thing is, that I get the listing of the home Directory:
-----------------------------------------------------------------------------------------------
$ tramp_file_attributes /home/
(t 9 0 0 (16146 41687) (15550 54354) (15550 54354) 512 16877 t (0 . 2) (500
2054))
-----------------------------------------------------------------------------------------------
changing to /home/vpp5000 results in:
-----------------------------------------------------------------------------------------------
$ ( test -d /home/vpp5000 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ( test -d /home/vpp5000 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ( test -d /home/vpp5000 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /home/vpp5000/.dired 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 2
# Inserting directory `ls -al /[scp/vpp]/home/vpp5000/', wildcard no, fulldir
yes
$ /bin/ls -al /home/vpp5000/.
total 320
drwxr-xr-x 40 root other 1024 Apr 14 11:15 .
drwxr-xr-x 9 root root 512 Apr 18 2002 ..
drwxr-sr-x 4 root bh00 512 Oct 22 2001 bh00
drwxr-sr-x 3 root gd00 512 Apr 11 2002 gd00
drwxr-sr-x 13 root gf00 512 Dec 3 2001 gf00
drwxr-sr-x 4 root gm00 512 Jun 6 2001 gm00
drwxr-sr-x 3 root gn00 512 Mar 9 2001 gn00
drwxr-sr-x 3 root gs00 512 Nov 6 2000 gs00
drwxr-sr-x 16 root hik 512 Feb 7 10:43 hik
drwxr-sr-x 3 root hj00 512 Nov 30 2000 hj00
drwxr-sr-x 8 root hk00 512 Apr 15 16:08 hk00
drwxr-sr-x 2 root hpe 512 Dec 4 2001 hpe
drwxr-sr-x 3 root ht00 512 May 19 2000 ht00
drwxr-sr-x 3 root ifia 512 Apr 14 11:17 ifia
drwxr-sr-x 3 root ig00 512 Jan 11 2002 ig00
drwxr-sr-x 3 root ihm 512 Mar 6 2001 ihm
drwxr-sr-x 9 root iket 512 Jan 9 2003 iket
drwxr-sr-x 3 root imf2 512 Dec 10 2002 imf2
drwxr-sr-x 3 root imf3 512 May 7 14:26 imf3
drwxr-sr-x 15 root imk1 512 Apr 1 12:54 imk1
drwxr-sr-x 7 root imk2 512 Jan 27 14:08 imk2
drwxr-sr-x 3 root imk4 512 Mar 11 2002 imk4
drwxr-sr-x 2 root imt 512 May 26 09:23 imt
drwxr-sr-x 3 root ine 512 Nov 11 2002 ine
drwxr-sr-x 3 root infp 512 May 3 2001 infp
drwxr-sr-x 3 root infp_thb 512 May 9 2000 infp_thb
drwxr-sr-x 7 root inr 512 Apr 28 09:30 inr
drwxr-sr-x 3 root int 512 Sep 3 2002 int
drwxr-sr-x 13 root irs 512 Mar 26 16:19 irs
drwxr-sr-x 3 root ji00 512 Aug 24 2000 ji00
drwxr-sr-x 4 root jl00 512 Jan 26 2001 jl00
drwxr-sr-x 5 root ne00 512 Aug 22 2000 ne00
drwxr-sr-t 10 root fsc 512 Dec 14 2000 op00
drwxr-sr-x 6 root rz00 512 Jun 29 2001 rz00
drwxr-sr-x 3 root sv30 512 Feb 25 09:59 sv30
drwxr-sr-x 20 root tpka 512 Nov 4 2002 tpka
drwxr-sr-x 3 root unierl 512 May 7 2001 unierl
drwxr-sr-x 8 root wsc00 512 Feb 21 08:41 wsc00
drwxr-sr-x 3 root yd00 512 Jun 7 2000 yd00
drwxr-sr-x 6 root yj60 512 Jan 11 2002 yj60
$ cd
$ ls -d /home/vpp5000/ 2>/dev/null; echo tramp_exit_status $?
/home/vpp5000/
tramp_exit_status 0
$ tramp_file_attributes /home/vpp5000/
Memory fault
------------------------------------------------------------------------------------------
Any ideas ?
Thanks,
Sven
PS
The environment:
local: pc running SuSe 8.1, xemacs 21.4, tramp tramp-2.0.35,
==== SSH Secure Shell 3.2.0 (non-commercial version) on i686-pc-linux-gnu
-------------------------------------------------------------------------------------------
remote: vpp, OS : UNIX_System_V, UXP/V
======
Perl on Remote:
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Built under uxpv
Compiled at Oct 15 2002 15:15:54
@INC:
/usr/local/lib/perl5/5.8.0/VPP5000-stdio
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/VPP5000-stdio
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl
/***** begin debug tramp/scp vpp ******/
# Opening connection at vpp using scp...
# Waiting 60s for shell or passwd prompt from vpp
warning: Need basic cursor movement capability, using vt100
Authentication successful.
Last login: Mon Jul 14 2003 12:28:38 from imkpcsg2.fzk.de
No mail.
--> Die Login-Meldungen koennen Sie jederzeit lesen mit "listinfo -a".
# Initializing remote shell
$ exec /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
exec /bin/sh
hikvpp-00 (gabriel)> # Setting up remote shell environment
stty -inlcr -echo kill '^U'
hikvpp-00 (gabriel)> hikvpp-00 (gabriel)> # Determining coding system
foo
bar
hikvpp-00 (gabriel)> # Waiting 30s for `HISTFILE=$HOME/.tramp_history;
HISTSIZE=1'
hikvpp-00 (gabriel)> # Waiting 30s for `set +o vi +o emacs'
hikvpp-00 (gabriel)> # Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
hikvpp-00 (gabriel)> # Waiting 30s for `unset CDPATH'
hikvpp-00 (gabriel)> # Setting shell prompt
$ PS1='
/////
'; PS2=''; PS3=''
$ echo hello
# Waiting for remote `/bin/sh' to come up...
hello
# Waiting for remote `/bin/sh' to come up...done
$ 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'
$ /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/ksh -a -f $d/ksh; then echo tramp_executable
$d/ksh; break; fi; done <<'EOF'
$ /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/ksh
# Starting remote shell `/bin/ksh' for tilde expansion...
$ PS1='$ ' ; exec /bin/ksh
hikvpp-00 (gabriel)> $ echo hello
# Waiting for remote `/bin/ksh' to start up...
hello
# Waiting for remote `/bin/ksh' to start up...done
# Finding command to check if file exists
$ ls -d / 2>/dev/null; echo tramp_exit_status $?
/
tramp_exit_status 0
$ ls -d /\ this\ file\ does\ not\ exist\ 2>/dev/null; echo tramp_exit_status
$?
tramp_exit_status 2
# Finding a suitable `ls' command
# 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
}
$ ls -d /bin 2>/dev/null; echo tramp_exit_status $?
/bin
tramp_exit_status 0
$ ( test -d /bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /usr/bin 2>/dev/null; echo tramp_exit_status $?
/usr/bin
tramp_exit_status 0
$ ( test -d /usr/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /usr/sbin 2>/dev/null; echo tramp_exit_status $?
/usr/sbin
tramp_exit_status 0
$ ( test -d /usr/sbin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /usr/local/bin 2>/dev/null; echo tramp_exit_status $?
/usr/local/bin
tramp_exit_status 0
$ ( test -d /usr/local/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $?
/usr/ccs/bin
tramp_exit_status 0
$ ( test -d /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /local/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 2
$ ls -d /local/freeware/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 2
$ ls -d /local/gnu/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 2
$ ls -d /usr/freeware/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 2
$ ls -d /usr/pkg/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 2
$ ls -d /usr/contrib/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 2
$ PATH=/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
huhu
$ unalias ls; echo huhu
huhu
$ ( test / -nt / )
$ tramp_test_nt () {
test -n "`find $1 -prune -newer $2 -print`"
}
$ while read d; do if test -x $d/perl5 -a -f $d/perl5; then echo
tramp_executable $d/perl5; break; fi; done <<'EOF'
$ /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'
$ /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 /usr/local/bin/perl
# Sending the Perl `file-attributes' implementation.
$ tramp_file_attributes () {
/usr/local/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 %u %u (%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
}
$ while read d; do if test -x $d/ln -a -f $d/ln; then echo tramp_executable
$d/ln; break; fi; done <<'EOF'
$ /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
$ cd ~; pwd
/home/vpp5000/imk2/gabriel
$ ( test -d /home/vpp5000/imk2/gabriel 2>/dev/null; echo tramp_exit_status $?
)
tramp_exit_status 0
$ ( test -d /home/vpp5000/imk2/gabriel 2>/dev/null; echo tramp_exit_status $?
)
tramp_exit_status 0
$ ls -d /home/vpp5000/imk2/gabriel/.dired 2>/dev/null; echo tramp_exit_status
$?
tramp_exit_status 2
# Inserting directory `ls -al /[scp/vpp]/home/vpp5000/imk2/gabriel/', wildcard
no, fulldir yes
$ /bin/ls -al /home/vpp5000/imk2/gabriel/.
total 2120
drwxr-sr-x 6 gabriel imk2 7680 Jul 14 14:31 .
drwxr-sr-x 7 root imk2 512 Jan 27 14:08 ..
-rw------- 1 gabriel imk2 2835 Jul 14 14:31 .Xauthority
-rw------- 1 gabriel imk2 26356 Jul 14 14:31 .bash_history
-rwxr----- 1 gabriel imk2 2164 Jul 7 15:32 .env.echam~
-rw------- 1 gabriel imk2 24 Apr 29 2002 .forward
-rw-r----- 1 gabriel imk2 0 Jul 11 20:01 .motd_gelesen
-rwxr-xr-x 1 gabriel imk2 2118 Jul 4 10:53 .profile
-rwxr-x--x 1 gabriel imk2 75 Feb 19 09:49 .profile_local
-rw------- 1 gabriel imk2 109126 Jul 14 14:31 .sh_history
drwxr-s--- 2 gabriel imk2 512 Mar 20 12:29 .ssh
drwxr-sr-x 3 gabriel imk2 512 Jul 4 10:48 .ssh2
lrwxrwxrwx 1 gabriel imk2 35 Jul 25 2002 PROGS ->
/hlrfs/home/imk2/gabriel/work/PROGS
-rw-r----- 1 gabriel imk2 22982 Jul 10 14:50 anfeld.f
-rwxr-xr-x 1 gabriel imk2 21 May 7 2002 b.sh
-rwxr-xr-x 1 gabriel imk2 1192 Mar 10 16:50 bulkcomp
-rwxr-x--- 1 gabriel imk2 462 Mar 5 14:17 bulkcomp.err
-rwxr-x--- 1 gabriel imk2 958 Mar 5 14:17 bulkcomp.out
-rwxr-x--- 1 gabriel imk2 1312 Mar 7 15:31 bulkcomp.sh
lrwxrwxrwx 1 gabriel imk2 32 Mar 14 20:49 chemie_roland ->
/home/vpp5000/imk2/ruhnke/chemie
lrwxrwxrwx 1 gabriel imk2 39 Mar 15 16:01 chemie_s ->
/hlrfs/home1/imk2/gabriel/work/chemie_s
-rw-r----- 1 gabriel imk2 0 Jul 14 13:57 core
lrwxrwxrwx 1 gabriel imk2 30 May 15 10:27 ctm ->
/vpp5000/work/imk2/gabriel/ctm
lrwxrwxrwx 1 gabriel imk2 33 Mar 11 09:53 da ->
/hlrfs/home1/imk2/gabriel/work/da
lrwxrwxrwx 1 gabriel imk2 30 Mar 24 11:10 da_res ->
/hlrfs/home1/imk2/gabriel/work
-rw-r----- 1 gabriel imk2 2442 May 15 16:18 dikancw.f
tramp_exit_status 0
-rw-r----- 1 gabriel imk2 14928 May 15 16:05 dyausg.f
drwxr-s--- 2 gabriel imk2 7168 May 13 12:17 gabriel-work
-rwxr-xr-x 1 gabriel imk2 1844 Feb 19 11:08 kasimaprofile
-rw-r----- 1 gabriel imk2 531968 May 14 18:09 kinc.tar
lrwxrwxrwx 1 gabriel imk2 34 Mar 11 09:54 lib ->
/hlrfs/home1/imk2/gabriel/work/lib
-rwxr-xr-x 1 gabriel imk2 1013 Nov 13 2002 modcl
lrwxrwxrwx 1 gabriel imk2 36 Mar 11 09:54 model ->
/hlrfs/home1/imk2/gabriel/work/model
lrwxrwxrwx 1 gabriel imk2 38 Mar 15 20:10 objects ->
/hlrfs/home1/imk2/gabriel/work/objects
-rwxr-xr-- 1 gabriel imk2 893 Feb 19 11:07 profile.bak
-rw-r----- 1 gabriel imk2 0 Jul 10 14:54 schmitz_go_home.txt
drwxr-s--- 6 gabriel imk2 512 Mar 10 21:26 sg_mod
$ cd
$ ls -d /home/vpp5000/imk2/gabriel/ 2>/dev/null; echo tramp_exit_status $?
/home/vpp5000/imk2/gabriel/
tramp_exit_status 0
$ tramp_file_attributes /home/vpp5000/imk2/gabriel/
Memory fault
$ ( test -d /home 2>/dev/null; echo tramp_exit_status $? )
$ ( test -d /home 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /home/.dired 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 2
# Inserting directory `ls -al /[scp/vpp]/home/', wildcard no, fulldir yes
$ /bin/ls -al /home/.
total 194656
drwxr-xr-x 9 root root 512 Apr 18 2002 .
drwxr-xr-x 58 root root 1536 Jul 12 10:29 ..
drwxrwxrwx 2 root other 512 Feb 14 2001 hlrfs
drwxrwxrwx 2 root other 512 Feb 14 2001 hlrfs1
drwxrwxrwx 2 root other 512 Feb 14 2001 hlrfs2
-rw------- 1 root other 98238464 Apr 18 2002 iotest
drwx------ 2 root root 512 Mar 27 2001 lost+found
-rw-r--r-- 1 root other 1344608 Jul 14 11:25 quotas
drwxrwxrwx 32 root other 512 Jan 16 2002 vpp
drwxr-xr-x 40 root other 1024 Apr 14 11:15 vpp5000
drwxrwxrwx 8 root other 512 May 3 01:05 work
$ cd
$ ls -d /home/ 2>/dev/null; echo tramp_exit_status $?
/home/
tramp_exit_status 0
$ tramp_file_attributes /home/
(t 9 0 0 (16146 41687) (15550 54354) (15550 54354) 512 16877 t (0 . 2) (500
2054))
tramp_exit_status 0
$ ( test -d /home 2>/dev/null; echo tramp_exit_status $? )
$ ls -d /home/ 2>/dev/null; echo tramp_exit_status $?
/home/
tramp_exit_status 0
$ tramp_file_attributes /home/
(t 9 0 0 (16146 41687) (15550 54354) (15550 54354) 512 16877 t (0 . 2) (500
2054))
$ ( test -d /home/vpp5000 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ( test -d /home/vpp5000 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ( test -d /home/vpp5000 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0
$ ls -d /home/vpp5000/.dired 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 2
# Inserting directory `ls -al /[scp/vpp]/home/vpp5000/', wildcard no, fulldir
yes
$ /bin/ls -al /home/vpp5000/.
total 320
drwxr-xr-x 40 root other 1024 Apr 14 11:15 .
drwxr-xr-x 9 root root 512 Apr 18 2002 ..
drwxr-sr-x 4 root bh00 512 Oct 22 2001 bh00
drwxr-sr-x 3 root gd00 512 Apr 11 2002 gd00
drwxr-sr-x 13 root gf00 512 Dec 3 2001 gf00
drwxr-sr-x 4 root gm00 512 Jun 6 2001 gm00
drwxr-sr-x 3 root gn00 512 Mar 9 2001 gn00
drwxr-sr-x 3 root gs00 512 Nov 6 2000 gs00
drwxr-sr-x 16 root hik 512 Feb 7 10:43 hik
drwxr-sr-x 3 root hj00 512 Nov 30 2000 hj00
drwxr-sr-x 8 root hk00 512 Apr 15 16:08 hk00
drwxr-sr-x 2 root hpe 512 Dec 4 2001 hpe
drwxr-sr-x 3 root ht00 512 May 19 2000 ht00
drwxr-sr-x 3 root ifia 512 Apr 14 11:17 ifia
drwxr-sr-x 3 root ig00 512 Jan 11 2002 ig00
drwxr-sr-x 3 root ihm 512 Mar 6 2001 ihm
drwxr-sr-x 9 root iket 512 Jan 9 2003 iket
drwxr-sr-x 3 root imf2 512 Dec 10 2002 imf2
drwxr-sr-x 3 root imf3 512 May 7 14:26 imf3
drwxr-sr-x 15 root imk1 512 Apr 1 12:54 imk1
drwxr-sr-x 7 root imk2 512 Jan 27 14:08 imk2
drwxr-sr-x 3 root imk4 512 Mar 11 2002 imk4
drwxr-sr-x 2 root imt 512 May 26 09:23 imt
drwxr-sr-x 3 root ine 512 Nov 11 2002 ine
drwxr-sr-x 3 root infp 512 May 3 2001 infp
drwxr-sr-x 3 root infp_thb 512 May 9 2000 infp_thb
drwxr-sr-x 7 root inr 512 Apr 28 09:30 inr
drwxr-sr-x 3 root int 512 Sep 3 2002 int
drwxr-sr-x 13 root irs 512 Mar 26 16:19 irs
drwxr-sr-x 3 root ji00 512 Aug 24 2000 ji00
drwxr-sr-x 4 root jl00 512 Jan 26 2001 jl00
drwxr-sr-x 5 root ne00 512 Aug 22 2000 ne00
drwxr-sr-t 10 root fsc 512 Dec 14 2000 op00
drwxr-sr-x 6 root rz00 512 Jun 29 2001 rz00
drwxr-sr-x 3 root sv30 512 Feb 25 09:59 sv30
drwxr-sr-x 20 root tpka 512 Nov 4 2002 tpka
drwxr-sr-x 3 root unierl 512 May 7 2001 unierl
drwxr-sr-x 8 root wsc00 512 Feb 21 08:41 wsc00
drwxr-sr-x 3 root yd00 512 Jun 7 2000 yd00
drwxr-sr-x 6 root yj60 512 Jan 11 2002 yj60
$ cd
$ ls -d /home/vpp5000/ 2>/dev/null; echo tramp_exit_status $?
/home/vpp5000/
tramp_exit_status 0
$ tramp_file_attributes /home/vpp5000/
Memory fault
/***** end debug tramp/scp vpp ******/
- tramp_file_attributes,
Sven Gabriel <=