02-23-2011
sorry tell you it's still not - its freezing my terminal my tty - I have to quit and login again.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
is it possible for me to have a shell script log me in to a telnet session? i have in mind something along the lines of
% telnet host < script, where the first two lines of script will be username and pass followed by a list of commands to execute on the remote host.
this doesn t work as... (4 Replies)
Discussion started by: lethe
4 Replies
2. Shell Programming and Scripting
Hello all,
I would like to login from one unix-system with a (tcsh)-script to an other unix-system.The login-procedure and the transmission of username, resp. password runs via ssh.
The problem is after logging onto the remote server once "Enter" has to be pressed, before one gets to the... (1 Reply)
Discussion started by: Juergen Paepke
1 Replies
3. Shell Programming and Scripting
Hi,
I am writing a script that will require me to perform tasks across servers. I tried to use rsh <host> "Commands..." > /dev/null 2>&1. However, I am required to execute a long series of commands after that and rsh does not seem to support this and its also insecure.
I tried to use rsh to... (5 Replies)
Discussion started by: joseph_ng
5 Replies
4. Shell Programming and Scripting
Hi,
I need to get the details (File System status & Memory status) of a remote server. I am executing a shell script in ksh and preparing the report.
Pls help.
Regards,
armohans. (1 Reply)
Discussion started by: armohans
1 Replies
5. Shell Programming and Scripting
I honestly tried searching for this in this forum and in google. Maybe I found the answer but didn't even realized it.
I would like to run shell script thats on my machine that collects the hostname and IP address from the remote system and sends the output to my machine.
I'm not sure if need... (2 Replies)
Discussion started by: elbombillo
2 Replies
6. Programming
Hi All,
I am using a expect script to run a shell script on remote server, the code is as follows. But the problem is that it executes only first command, and hangs it doesn't run the next commands.
spawn ssh $uid@$host
expect "password:"
send "$password\r"
expect "*\r"
send... (2 Replies)
Discussion started by: yashwanthsn
2 Replies
7. Shell Programming and Scripting
I m trying to run a batch script in remote desktop which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like
ssh hostname path ksh HC_Report.ksh>out.html
...but it generates the HTML file in
remote desktop .i... (2 Replies)
Discussion started by: navsan
2 Replies
8. Shell Programming and Scripting
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies
9. Shell Programming and Scripting
Hi ,
I have written a small script :
set -x
#!/bin/ksh
for i in `cat /tmp/list` ( list contains remove servers )
do
ssh -t $i << EOF
uname -a
cd ~user
echo "Enter the dir >"
read dir
path=`ll -ld /home/user/"$dir"`
if ; then
echo "Dir exists "
read
rm $path
else
echo "no such... (9 Replies)
Discussion started by: kpatel786
9 Replies
10. Shell Programming and Scripting
local script:
cat > first.sh
cd /tmp
echo $PWD
echo `whoami`
cd /tmp/123
tar -cvf 789.tar 456
sleep 10
except script:
cat > first
#!/usr/bin/expect
set ip 10.5.15.20
set user "xyz123"
set password "123456"
set script first.sh
spawn sh -c "ssh $user@$ip bash < $script" (1 Reply)
Discussion started by: Aditya Avanth
1 Replies
LEARN ABOUT FREEBSD
getty
GETTY(8) BSD System Manager's Manual GETTY(8)
NAME
getty -- set terminal mode
SYNOPSIS
getty [type [tty]]
DESCRIPTION
The getty utility is called by init(8) to open and initialize the tty line, read a login name, and invoke login(1).
The argument tty is the special device file in /dev to open for the terminal (for example, ``ttyh0''). If there is no argument or the argu-
ment is '-', the tty line is assumed to be open as file descriptor 0.
The type argument can be used to make getty treat the terminal line specially. This argument is used as an index into the gettytab(5) data-
base, to determine the characteristics of the line. If there is no argument, or there is no such table, the default table is used. If there
is no /etc/gettytab a set of system defaults is used. If indicated by the table located, getty will clear the terminal screen, print a ban-
ner heading, and prompt for a login name. Usually either the banner or the login prompt will include the system hostname.
Most of the default actions of getty can be circumvented, or modified, by a suitable gettytab table.
The getty utility can be set to timeout after some interval, which will cause dial up lines to hang up if the login name is not entered rea-
sonably quickly.
FILES
/etc/gettytab
/etc/ttys
DIAGNOSTICS
ttyxx: No such device or address.
ttyxx: No such file or address.
A terminal which is turned on in the ttys file cannot be opened, likely because the requisite lines are either not configured into the sys-
tem, the associated device was not attached during boot-time system configuration, or the special file in /dev does not exist.
SEE ALSO
login(1), ioctl(2), tty(4), gettytab(5), ttys(5), init(8)
HISTORY
A getty utility appeared in Version 6 AT&T UNIX.
BSD
June 4, 1993 BSD