09-08-2005
Terminal settings from linux to solaris
When I log in from my linux workstation (CentOS4) to a solaris 8 server using SSH or telnet, the terminal settings don't seem to work well. When I tail or vi a file, I get a blank screen or no response, and I am no longer able to interact with the session. I have to type the escape sequence to get out of the session. The TERM env is set to xterm or vt100 on both sides. Has anyone ever run into this problem?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I use Unix at work, and thought that I should finally install it on my computer, just as a play around. Plus I am into programming C and various other languages. I have never used Mandrake linux, and to be honest it was just a freebie that I found that I thought I would give a quick try. I have... (3 Replies)
Discussion started by: SiE
3 Replies
2. UNIX for Dummies Questions & Answers
I am getting the following error when try to use vi
vt100: Unknown terminal type
Visual needs addressable cursor or upline capability
:
I have checked the TERM variable which is set to vt100. What could be the problem. This is on solaris 2.8 and i am doing telnet. (2 Replies)
Discussion started by: sssow
2 Replies
3. UNIX for Dummies Questions & Answers
I am not a Solaris (Unix) guy so i need help. I am trying to get a Sun Ultra 5 running Solaris 8 to display the correct video for my KVM switch. I have set the CDE to 1024x768x75 and have no problem with video using this setting in CDE. When I shut down the server or boot up the server it is... (4 Replies)
Discussion started by: cchyzm
4 Replies
4. UNIX for Dummies Questions & Answers
I've been doing a lot of searching through the forums to figure out how to:
1 - get my Backspace key to work in my ksh telnet session
2 - get the PWD to show up as the prompt
Solution to 1 - stty erase ^H
Solution to 2 - export PS1="$PWD>"
Or so I thought...type those commands on the... (6 Replies)
Discussion started by: dstinsman
6 Replies
5. OS X (Apple)
Under Leopard, I like to conveniently open Terminal windows onto remote systems. I've created several settings files in Terminal, one for each remote system that I want to access. To open window, I right-click on the Terminal icon in the Dock, expand the "New Window" menu item, and select the... (0 Replies)
Discussion started by: siemsen
0 Replies
6. Solaris
Hi, I have a question, I have a legacy windows application that download files using FTP..The server previously was a Windows based server but it was upgraded to Sun Solaris 10. And that was when the application stopped working.
After a long time of troubleshooting, I might have found that the... (4 Replies)
Discussion started by: brian12988
4 Replies
7. Shell Programming and Scripting
Hi All,
I want to login to CVS using terminal. I am executing the following command in the terminal :-
export CVSROOT=: pserver:ags_rd@istcvs.corp.apple.com:/istcvs/CVSHOME
cvs login
But i get the following error :
Afreens-iMac:buildTest Afreen$ export CVSROOT=:... (3 Replies)
Discussion started by: Afreen
3 Replies
8. OS X (Apple)
Hi All,
I want to login to CVS using terminal. I am executing the following command in the terminal :-
export CVSROOT=: pserver:ags_rd@istcvs.corp.apple.com:/istcvs/CVSHOME
cvs login
But i get the following error :
Afreens-iMac:buildTest Afreen$ export CVSROOT=:... (1 Reply)
Discussion started by: Afreen
1 Replies
9. UNIX for Dummies Questions & Answers
I use a program called TinyTerm to access our AIX machine. It works fine except for when I rlogin into our SCO unix server. Backspace doesn't delete, ctrl-c doesn't work (delete key does same thing), and the most annoying thing is vi acts very wierd. I have to press the down arrow like 3 times to... (11 Replies)
Discussion started by: herot
11 Replies
10. Solaris
I have net0 as my primary network interface in Solaris 11.
# ifconfig net0
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.53.77.154 netmask ffffff00 broadcast 10.53.77.255
ether 0:10:e0:3a:c4:d8
Its netmask should be fffffc00, but whenever I... (8 Replies)
Discussion started by: solaris_1977
8 Replies
LEARN ABOUT PHP
ssh2_exec
SSH2_EXEC(3) 1 SSH2_EXEC(3)
ssh2_exec - Execute a command on a remote server
SYNOPSIS
resource ssh2_exec (resource $session, string $command, [string $pty], [array $env], [int $width = 80], [int $height = 25], [int
$width_height_type = SSH2_TERM_UNIT_CHARS])
DESCRIPTION
Execute a command at the remote end and allocate a channel for it.
PARAMETERS
o $session
- An SSH connection link identifier, obtained from a call to ssh2_connect(3).
o $command
-
o $pty
-
o $env
-$env may be passed as an associative array of name/value pairs to set in the target environment.
o $width
- Width of the virtual terminal.
o $height
- Height of the virtual terminal.
o $width_height_type
-$width_height_type should be one of SSH2_TERM_UNIT_CHARS or SSH2_TERM_UNIT_PIXELS.
RETURN VALUES
Returns a stream on success or FALSE on failure.
EXAMPLES
Example #1
Executing a command
<?php
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$stream = ssh2_exec($connection, '/usr/local/bin/php -i');
?>
SEE ALSO
ssh2_connect(3), ssh2_shell(3), ssh2_tunnel(3).
PHP Documentation Group SSH2_EXEC(3)