screen-users
[Top][All Lists]
Advanced

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

2 problems using screen with sshfs and symlinks


From: Ken Steen
Subject: 2 problems using screen with sshfs and symlinks
Date: Wed, 6 Aug 2008 07:44:32 -0700
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

I have a small file manager that uses screen to open programs in new
screen windows.  It works correctly except when using screen on a
directory mounted with sshfs or when using screen on a directory that is
a symbolic link.  If the program is started with 'screen program-name',
and the current directory is a symbolic link to another directory
opening a new screen window changes the pwd to the directory that is
pointed to by the symbolic link instead of the symbolic link directory.
If the program is started in the shell without screen and then opens a
screen window the pwd is the symbolic link directory.  A similar problem
occurs when a directory  is mounted with sshfs.  If the program is
started with 'screen program-name' screen will give a permission denied
message when trying to open a new screen window.  If the program is
started in a shell without screen and trys to open a sshfs mounted
directory in a screen window it works correctly.

I am not sure what is happening.  I am guessing that the environ
variable is not being set correctly.  The screen command is passed with 
execve() and works correctly except in the previous two examples.  Any
ideas into what I am doing wrong would be greatly appreciated.

Ken




reply via email to

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