Re: tramp ($Id: tramp.el,v 1.448 2001/02/18 10:37:36 grossjoh Exp $); End of file during parsing...
K Grojohann writes: On 21 Feb 2001, Kai Grojohann wrote: I will have to reformulate the command to do: while read d; do done EOF I have now tried to do this, can you please test? New version in CVS. Holler if you want it via FTP. Works beautifully, thanks.
tramp ($Id: tramp.el,v 1.448 2001/02/18 10:37:36 grossjoh Exp $); End of file during parsing...
Enter your bug report in this message, including as much detail as you possibly can about the problem, what you did to cause it and what the local and remote machines are. If you can give a simple set of instructions to make this bug happen reliably, please include those. Thank you for helping kill bugs in TRAMP. --bug report follows this line-- I try to get a file from a remote machine with ssh2. ssh-agent is such that I can do this transparently from the command line, but I get 'End of file during parsing' Here is the debug buffer # Opening connection for [EMAIL PROTECTED] using scp... # Waiting 60s for shell or passwd prompt from csep1.phy.ornl.gov Last login: Mon Feb 19 2001 08:55:27 No mail. This is a Federal computer system and is the property of the United States Government. It is for authorized use only. Users (authorized or unauthorized) have no explicit or implicit expectation of privacy. Any or all uses of this system and all files on this system may be intercepted, monitored, recorded, copied, audited, inspected, and disclosed to authorized site, Department of Energy, and law enforcement personnel, as well as authorized officials of other agencies, both domestic and foreign. By using this system, the user consents to such interception, monitoring, recording, copying, auditing, inspection, and disclosure at the discretion of authorized site or Department of Energy personnel. Unauthorized or improper use of this system may result in administrative disciplinary action and civil and criminal penalties. By continuing to use this system you indicate your awareness of and consent to these terms and conditions of use. LOG OFF IMMEDIATELY if you do not agree to the conditions stated in this warning. [~] csep1 $ # Initializing remote shell $ exec /bin/sh # Waiting 30s for remote `/bin/sh' to come up... exec /bin/sh $ # Setting up remote shell environment stty -echo $ $ # Determining coding system foo bar $ # Waiting 30s for `unset HISTFILE' $ # Waiting 30s for `set +o vi +o emacs' $ # Waiting 30s for `unset MAIL MAILCHECK MAILPATH' $ $ PS1=' / '; PS2=''; PS3='' # Waiting for remote `/bin/sh' to come up... # Waiting for remote `/bin/sh' to come up...done $ echo ~root ~root $ ( echo /bin;echo /usr/bin;echo /usr/sbin;echo /usr/local/bin;echo /usr/ccs/bin;echo /local/bin;echo /local/freeware/bin;echo /local/gnu/bin;echo /usr/freeware/bin;echo /usr/pkg/bin ) | while read d; do if test -x $d/ksh -a -f $d/ksh; then echo $d/ksh; break; fi; done ^D/bin/ksh # Starting remote shell `^D/bin/ksh' for tilde expansion... $ PS1='$ ' ; exec ^D/bin/ksh /bin/sh: ^D^H^H/bin/ksh: not found $ /bin/sh: ^D^H^H/bin/ksh: not found $ echo hello # Waiting for remote `^D/bin/ksh' to start up... hello # Waiting for remote `^D/bin/ksh' to start up...done # Finding command to check if file exists $ ls -d / ; echo tramp_exit_status $? / tramp_exit_status 0 $ ls -d /\ this\ file\ does\ not\ exist\ ; echo tramp_exit_status $? ls: / this file does not exist : No such file or directory tramp_exit_status 1 # Finding a suitable `ls' command # Checking remote `/bin/ls' command for `-n' option $ test -x /bin/ls ; echo tramp_exit_status $? tramp_exit_status 0 # Testing remote command `/bin/ls' for -n... $ /bin/ls -lnd / /dev/null 21 ; 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 ; echo tramp_exit_status $? /bin tramp_exit_status 0 $ ( cd /bin ; echo tramp_exit_status $? ) tramp_exit_status 0 $ ls -d /usr/bin ; echo tramp_exit_status $? /usr/bin tramp_exit_status 0 $ ( cd /usr/bin ; echo tramp_exit_status $? ) tramp_exit_status 0 $ ls -d /usr/sbin ; echo tramp_exit_status $? /usr/sbin tramp_exit_status 0 $ ( cd /usr/sbin ; echo tramp_exit_status $? ) tramp_exit_status 0 $ ls -d /usr/local/bin ; echo tramp_exit_status $? /usr/local/bin tramp_exit_status 0 $ ( cd /usr/local/bin ; echo tramp_exit_status $? ) tramp_exit_status 0 $ ls -d /usr/ccs/bin ; echo tramp_exit_status $? ls: /usr/ccs/bin: No such file or directory tramp_exit_status 1 $ ls -d /local/bin ; echo tramp_exit_status $? ls: /local/bin: No such file or directory tramp_exit_status 1 $ ls -d /local/freeware/bin ; echo tramp_exit_status $? ls: /local/freeware/bin: No such file or directory tramp_exit_status 1 $ ls -d /local/gnu/bin ; echo tramp_exit_status $? ls: /local/gnu/bin: No such file or directory tramp_exit_status 1 $ ls -d /usr/freeware/bin ; echo tramp_exit_status $? ls: /usr/freeware/bin: No such file or directory tramp_exit_status 1 $ ls -d /usr/pkg/bin ; echo tramp_exit_status $? /usr/pkg/bin tramp_exit_status 0 $ ( cd /usr/pkg/bin ; echo tramp_exit_status $? ) tramp_exit_status 0 $ PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/pkg/bin; export PATH $ LC_TIME=C; export LC_TIME; echo huhu huhu $ mesg n; echo huhu huhu $ biff n ; echo huhu ksh: biff: not found huhu $ unalias
Re: tramp ($Id: tramp.el,v 1.448 2001/02/18 10:37:36 grossjoh Exp $); End of file during parsing...
K Grojohann writes: On 21 Feb 2001, Paul Stevenson wrote: If I interactively type 'sh' and then paste the above long command, it truncates at about 190 characters. Can this be relevant? Yes. Shit. I will have to reformulate the command to do: while read d; do done EOF Then I send the directory names to the remote end, one dir per line, then I send EOF. Argh. Can you do this yourself? I might not have time for a while now. kai I'll give it a go.
Re: tramp ($Id: tramp.el,v 1.434 2000/11/17 22:13:36 grossjoh Exp $); ntemacs/tramp fails on not able to find end-of-line
mah [EMAIL PROTECTED] writes: Relatively fresh install of ntemacs with only slight modifications of my regular Debian installation (in which tramp works). Attempting tm method with tramp results in the following message: Couldn't find exit status of `test -x "/bin/ksh"' Kai, the tramp author, has given the following fix in the past week for a bug which sounds much like you are describing: I think I know where that comes from. Don't have time to really fix this, though. I think you want to look at this code, it's in tramp.el, in the function tramp-send-command-and-check. (tramp-send-command multi-method method user host (concat (if subshell "( " "") command (if command tramp-rsh-end-of-line "") "echo tramp_exit_status $?" (if subshell " )" ""))) In the `if' line in the middle, replace tramp-rsh-end-of-line with ";" (including the quotes). Does that help? I hope it works for you.
Re: tramp ($Id: tramp.el,v 1.434 2000/11/17 22:13:36 grossjoh Exp $); some of the hosts get 'couldn't get exit status' message despite it definitely being in the tramp's buffer
Markus Stenberg [EMAIL PROTECTED] writes: For some reason, using moderately recent XEmacs and SSH2 (in case it matters), I get 'couldn't get exit status' errors to some hosts consistently. Kai, the tramp author, has given the following fix in the past week for a bug which sounds much like you are describing: I think I know where that comes from. Don't have time to really fix this, though. I think you want to look at this code, it's in tramp.el, in the function tramp-send-command-and-check. (tramp-send-command multi-method method user host (concat (if subshell "( " "") command (if command tramp-rsh-end-of-line "") "echo tramp_exit_status $?" (if subshell " )" ""))) In the `if' line in the middle, replace tramp-rsh-end-of-line with ";" (including the quotes). Does that help? I hope it works for you.
Re: tramp ($Id: tramp.el,v 1.434 2000/11/17 22:13:36 grossjoh Exp $); solaris 2.6, test -x /bin/ksh
James Cooley [EMAIL PROTECTED] writes: "Couldn't find exit status of `test -x /bin/ksh'" Hi. The very last message Kai posted to the list fixed this for me. He said: I think I know where that comes from. Don't have time to really fix this, though. I think you want to look at this code, it's in tramp.el, in the function tramp-send-command-and-check. (tramp-send-command multi-method method user host (concat (if subshell "( " "") command (if command tramp-rsh-end-of-line "") "echo tramp_exit_status $?" (if subshell " )" ""))) In the `if' line in the middle, replace tramp-rsh-end-of-line with ";" (including the quotes). Does that help? It worked for me.
End of file during parsing
$s[3], $s[4], $s[5], $s[8] 16 0x, $s[8] 0x, $s[9] 16 0x, $s[9] 0x, $s[10] 16 0x, $s[10] 0x, $s[7], $s[2], $s[1], $s[0] 16 0x, $s[0] 0x);' $1 2/dev/null } # Looking for remote executable `/bin/ln' $ test -x /bin/ln ; echo tramp_exit_status $? tramp_exit_status 0 # Found remote executable `/bin/ln' $ cd ~; pwd /usr/people/spaul $ ( cd /usr/people/spaul/codes/skyax/source/skyax.f ; echo tramp_exit_status $? ) /bin/ksh: /usr/people/spaul/codes/skyax/source/skyax.f: not a directory tramp_exit_status 1 $ test -e /usr ; echo tramp_exit_status $? tramp_exit_status 0 $ tramp_file_attributes /usr The machine is an SGI power challenge running IRIX 6.5 -- . Dr Paul Stevenson . Research Fellow . University of Surrey . . phone: +44 (0) 1483 876795 . fax +44 (0) 1483 876781 . .[EMAIL PROTECTED] . http://www.ph.surrey.ac.uk/~phs3ps. . I dream in beige.
Re: End of file during parsing
Paul Stevenson [EMAIL PROTECTED] writes: Hello, I try to get the following file, which I can get outside emacs without a password since I use ssh-agent: /r@scp:[EMAIL PROTECTED]@codes/skyax/source/skyax.f The machine is an SGI power challenge running IRIX 6.5 Okay, before anyone looks to deeply... I installed the latest tar.gz dist of tramp (no cvs binary on this machine) in case the problem had been corrected. Firstly, I got a couple of make warnings: [~/emacs/tramp] gromit $ gmake EMACS=emacs all for a in lisp texi; do \ gmake -C $a "EMACS=emacs" "MAKEINFO=makeinfo" all; \ done gmake[1]: Entering directory `/a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/lisp' emacs -batch -f batch-byte-compile base64.el While compiling the end of the data in file /a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/lisp/base64.el: ** the function char-int is not known to be defined. Wrote /a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/lisp/base64.elc Done emacs -batch -f batch-byte-compile format-spec.el Wrote /a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/lisp/format-spec.elc Done emacs -batch --eval "(add-to-list 'load-path \".\")" \ -f batch-byte-compile tramp.el While compiling the end of the data in file /a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/lisp/tramp.el: ** the function tramp-line-end-position is not known to be defined. Wrote /a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/lisp/tramp.elc Done emacs -batch --eval "(add-to-list 'load-path \".\")" \ -f batch-byte-compile tramp-vc.el While compiling the end of the data in file /a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/lisp/tramp-vc.el: ** The following functions are not known to be defined: vc-setup-buffer, vc-exec-after Wrote /a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/lisp/tramp-vc.elc Done gmake[1]: Leaving directory `/a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/lisp' gmake[1]: Entering directory `/a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/texi' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/a/marie/home/marie/marie2/phresearch/phs3ps/emacs/tramp/texi' and now it fails differently, with the message couldn't find exit status of 'test -x /bin/ksh' Here's the debug buffer: # Opening connection for [EMAIL PROTECTED] using scp... # Waiting 60s for shell or passwd prompt from some.machine.gov Last login: Mon Nov 27 2000 09:20:14 No mail. This is a Federal computer system and is the property of the United States Government. It is for authorized use only. Users (authorized or unauthorized) have no explicit or implicit expectation of privacy. Any or all uses of this system and all files on this system may be intercepted, monitored, recorded, copied, audited, inspected, and disclosed to authorized site, Department of Energy, and law enforcement personnel, as well as authorized officials of other agencies, both domestic and foreign. By using this system, the user consents to such interception, monitoring, recording, copying, auditing, inspection, and disclosure at the discretion of authorized site or Department of Energy personnel. Unauthorized or improper use of this system may result in administrative disciplinary action and civil and criminal penalties. By continuing to use this system you indicate your awareness of and consent to these terms and conditions of use. LOG OFF IMMEDIATELY if you do not agree to the conditions stated in this warning. SHUTDOWN NOTICE * There is a hardware problem with one of the memory boards * * It is likely that tomorrow (Tuesday, Nov 7th) some will * * have to go down on short notice to make repairs. * * [~] some $ # Initializing remote shell $ exec /bin/sh # Waiting 30s for remote `/bin/sh' to come up... exec /bin/sh $ # Setting up remote shell environment stty -echo $ $ # Determining coding system foo bar $ # Waiting 30s for `set +o history' /bin/sh: history: bad option(s) $ # Waiting 30s for `set +o vi +o emacs' $ # Waiting 30s for `unset MAIL MAILCHECK MAILPATH' $ $ PS1=' / '; PS2=''; PS3='' # Waiting for remote `/bin/sh' to come up... # Waiting for remote `/bin/sh' to come up...done # Finding command to check if file exists $ ls -d / echo tramp_exit_status $? / / tramp_exit_status 0 $ ls -d /\ this\ file\ does\ not\ exist\ echo tramp_exit_status $? ls: / this file does not exist : No such file or directory / tramp_exit_status 1 $ echo ~root ~root # Looking for remote executable `/bin/ksh' $ test -x /bin/ksh echo tramp_exit_status $?
End of file during parsing
I get the error as in the subject when trying to visit a file on a remote machine with scp. Logging in to the machine works fine via ssh-agent without a password and I can scp the file okay. Tramp connects to the remote machine and I can browse the directory structure and use tab-completion to find the file. I have set tramp-verbose to 10 (I don't need to quote the '10' do I?) but no buffer with debug data appears (not even one starting with a space). I'm using: $Id: tramp.el,v 1.409 2000/08/29 16:30:45 grossjoh Exp $ what is a useful way for me to debug this? And while I'm at it, I don't have install-info. Is there a way to read the info file in emacs without this? -- . Paul Stevenson . Reasearch Fellow . University of Surrey . . phone: +44 (0) 1483 876795 . fax +44 (0) 1483 876781 . . I dream in beige .
Re: End of file during parsing
[EMAIL PROTECTED] (Kai Großjohann) writes: On 09 Oct 2000, Paul Stevenson wrote: I get the error as in the subject when trying to visit a file on a remote machine with scp. Logging in to the machine works fine via ssh-agent without a password and I can scp the file okay. Tramp connects to the remote machine and I can browse the directory structure and use tab-completion to find the file. Hm. This means that the shell connection works, only the scp doesn't work. Hm. Can you (setq tramp-debug-buffer t), start Emacs, try to open a remote file, then send me (or the list) the *tramp/foo* and *debug tramp/foo* buffers? /bin/ksh: nil: not found # Opening connection for [EMAIL PROTECTED] using scp... # Waiting 60s for shell or passwd prompt from csep1.phy.ornl.gov Last login: Mon Oct 09 2000 12:03:23 No mail. This is a Federal computer system and is the property of the United States Government. It is for authorized use only. Users (authorized or unauthorized) have no explicit or implicit expectation of privacy. Any or all uses of this system and all files on this system may be intercepted, monitored, recorded, copied, audited, inspected, and disclosed to authorized site, Department of Energy, and law enforcement personnel, as well as authorized officials of other agencies, both domestic and foreign. By using this system, the user consents to such interception, monitoring, recording, copying, auditing, inspection, and disclosure at the discretion of authorized site or Department of Energy personnel. Unauthorized or improper use of this system may result in administrative disciplinary action and civil and criminal penalties. By continuing to use this system you indicate your awareness of and consent to these terms and conditions of use. LOG OFF IMMEDIATELY if you do not agree to the conditions stated in this warning. March 8, 2000 - A new Postscript and PDF viewer has been installed. The program is Ghostscript 6.0, with the controller gv. These are better able to deal with Acrobat 4.0 documents than the other utilities, showps and acroread. GV is now the default handler in Netscape on this machine. Questions? email [EMAIL PROTECTED] [~] csep1 $ # Initializing remote shell $ exec /bin/sh # Waiting 30s for remote `/bin/sh' to come up... exec /bin/sh $ # Setting up remote shell environment stty -echo $ # Determining coding system foo bar $ # Waiting 30s for `set +o history' /bin/sh: history: bad option(s) $ # Waiting 30s for `set +o vi +o emacs' $ # Waiting 30s for `unset MAIL MAILCHECK MAILPATH' $ $ PS1=' / '; PS2=''; PS3='' # Waiting for remote `/bin/sh' to come up... # Waiting for remote `/bin/sh' to come up...done $ echo ~root ~root # Looking for remote executable `/bin/ksh' $ test -x /bin/ksh ; echo tramp_exit_status $? tramp_exit_status 0 # Found remote executable `/bin/ksh' # Starting remote shell `/bin/ksh' for tilde expansion... $ PS1='$ ' ; exec /bin/ksh $ $ echo hello # Waiting for remote `/bin/ksh' to start up... # Waiting for remote `/bin/ksh' to start up...done # Finding a suitable `ls' command # Checking remote `/bin/ls' command for `-n' option $ test -x /bin/ls ; echo tramp_exit_status $? hello /bin/ksh: nil: not found tramp_exit_status 0 /bin/ksh: /usr/people/spaul/codes/mono/src/monopert3.f90: not a directory tramp_exit_status 1 /usr/people/spaul $ cd ~; pwd $ ( cd /usr/people/spaul/codes/mono/src/monopert3.f90 ; echo tramp_exit_status $? ) $ test -e /usr ; echo tramp_exit_status $? $ nil -ildn /usr And while I'm at it, I don't have install-info. Is there a way to read the info file in emacs without this? You can copy the file to the info directory (this probably already happened), then make the `dir' entry manually. I think you can quickly figure out the format of a dir file from existing examples. If you have a dir file in the target directory, just add an entry. Else copy an existing dir file and be sure to not delete the ^_ funny character. The low-tech solution is to say C-u C-h i, though. This lets you enter a file name. Danke schön. -- . Paul Stevenson . Reasearch Fellow . University of Surrey . . phone: +44 (0) 1483 876795 . fax +44 (0) 1483 876781 . . I dream in beige .
Re: rcp.el 1.164: bug fixes
DI Maximilian Renkin [EMAIL PROTECTED] writes: I just tried to use rcp-1.164.el with Gnu Emacs 20.4.1, using "/r@scp:hostname:/the/path" and got: Buffer *Messages* : ... Loading ange-ftp...done Symbol's function definition is void: find ... I've had this too. Presumably it's the `find' in rcp-check-ls-commands. The `find' seems to come from cl, so perhaps there is a missing (require 'cl) somewhere. (although it would appear to be there right at the top of rcp.el - i did type 'make' after installing)
Re: rcp now as tarball
[EMAIL PROTECTED] (Kai Großjohann) writes: Kai Großjohann [EMAIL PROTECTED] writes: But I don't know how to do that timing thing. Let me rephrase this as a question to all of you gurus out there: I connect to the remote machine using some method. I then have to wait for the remote shell to come up before doing anything. How do I do that? The easy case is with something like "ssh -l USER HOST /bin/sh". Then, we at least know which shell we're talking to. The hard case is with something like "ssh -l USER HOST". Then, we don't know which shell we're talking to. would ssh -l USER HOST 'echo $SHELL' work? and then a ssh -l USER HOST would be connected to that shell. Okay, I have an account on a Digital Unix machine in which chsh presents me with a list of accepted options. Here goes, executing the above for all the possible options: · With /usr/bin/sh selected: /usr/bin/sh · With /usr/bin/csh selected: /usr/bin/csh · With /usr/bin/ksh selected: /usr/bin/ksh · With /usr/bin/posix/sh selected: /usr/bin/posix/sh · With /bin/sh selected: /bin/sh · With /bin/csh selected: /bin/csh · With /bin/ksh selected: /bin/ksh · With /usr/local/bin/tcsh selected: /usr/local/bin/tcsh · With /usr/local/bin/bash selected: /usr/local/bin/bash · With /usr/local/bin/tcsh-6.08 selected: /usr/local/bin/tcsh-6.08 Which is promising, but still not a guarantee. Does POSIX mandate the SHELL variable be set? I wouldn't know where to look, but you would think the shell /usr/bin/posix/sh would be all of posix and nothing more. Not that all shells are supersets of the posix shell. So, if anybody has a suggestion for finding out when the remote shell has started up and is ready for accepting commands, please say so. as for that, um