Hello ,
I am seeing the following error when I run my function `mssh`.
</snip>
sharadg ~> mssh `name of the host`
Pseudo-terminal will not be allocated because stdin is not a terminal.
ssh: tar zpvxf -: Name or service not known
tar: Child died with signal 13
tar: Error exit delayed from previous errors
usage: ssh [-1246AaCfghkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
[-D port] [-e escape_char] [-F configfile] [-i identity_file]
[-L port:host:hostport] [-l login_name] [-m mac_spec] [-o
option]
[-p port] [-R port:host:hostport] [-S ctl] [u...@]hostname
[command]
</snip>
The definiton of the function is as :
mssh> function mssh
echo -n -e "\033k`echo $1 | awk -F. '{print $1"."$3}'`\033\\"
/home/sharadg/myssh "$1"
echo -n -e "\033kzero\033\\"
end
The function is a wrapper of ssh command and I used it with Gnu Screen
to get the name of the host I am sshing to .
Eg : mssh a.com -> my screenwindow name changes to a.com
This is my configuration;
1. sharadg ~> fish -v
fish, version 1.23.1
2. Fish is compiled with the prefix=$HOME/fish
3. I have added /home/sharadg/fish/bin/fish to /etc/shells and edited my
/etc/passwd with the path of the install
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users