Re: My take on it
@Bryanhoop: Thanks! Here's my solution for
(my WinSCP session runs
.bashrc
WinSCP Command
The only thing is that
tail -f
(my WinSCP session runs
sudo su - so I have to account for PuTTY launching non elevated)
.bashrc
if [ -f $HOME/tailputtyscript.sh ]
then
. $HOME/tailputtyscript.sh
rm -f $HOME/tailputtyscript.sh
fi
WinSCP Command
echo clear > /home/!U/tailputtyscript.sh;
echo >> /home/!U/tailputtyscript.sh;
echo sudo tail -f "!/!" >> /home/!U/tailputtyscript.sh;
chmod 777 /home/!U/tailputtyscript.sh
The only thing is that
rm -f $HOME/tailputtyscript.sh doesn't remove the file.