[Top][All Lists]

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

Re: tramp hangs

From: Michael Albinus
Subject: Re: tramp hangs
Date: Thu, 19 Sep 2019 12:08:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Mark Geary <address@hidden> writes:

Hi Mark,

>>> 17:09:23.769961 tramp-send-command (6) # ( (test -e
>>> /home/mag43/.profile || test -h /home/mag43/.profile) && (env
>>> QUOTING_STYLE=locale /usr/ccs/bin/stat -c '((/////%N/////) %h %u %g %X
>>> %Y %Z %s /////%A///// t %i -1)' /home/mag43/.profile | sed -e
>>> 's/"/\\"/g' -e 's/\/\/\/\/\//"/g') || echo nil) 2>/dev/null; echo
>>> tramp_exit_status $?
>>> 17:09:23.780967 tramp-wait-for-regexp (6) # bash: dev/null: No such
>>> file or directory
>>> tramp_exit_status 127
>>> ///3ccb8c84d92d4fbbce6ab9a5367fc57b#$
>> What's up with /dev/null on that remote host? Note, that Tramp has
>> decided to use /usr/ccs/bin/bash there, for whatever reason.
> Thanks for looking at this.
> /usr/ccs/bin is a link to /usr/bin.
> Looking more closely, I notice that the "/" before "dev" happens to be
> the 256th character of that line. I'm sure that's no coincidence, but
> I can't figure where the limit comes from or what, exactly, is being
> limited.

> If I open a new window and copy-paste lines from the invocation of
> bash up to the one before this one (the readlink), then break this
> line (after the "&&", for example) into two lines, the stat succeeds.
> Alternately, if I put an empty string for the TERM type in the bash
> invocation and leave out the "set +o emacs" further down ("set +o vi"
> is ok) then I can paste the entire 292-character "stat" line and get
> the proper output.
> I am unsure of the best direction to proceed from here. Add one of the
> above work-arounds in Tramp? (How?) Further digging to find the root cause?

Hard to say. However, the command line using stat(1) is kind of complex,
maybe Solaris has problems with this. So you could instruct Tramp *not*
to use stat (it will apply a perl script then, or a simple ls), which
might work better.

Could you please run

(add-to-list 'tramp-connection-properties '("sfmg10" "stat" nil))

after you have loaded Tramp, but before you try to connect that host for
the first time?

> Mark

Best regards, Michael.

reply via email to

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