Why ?
while command(s)
do
...
done
=> exit code of command, between while and do you can put command lines, but return code of last line is the important.
=> read some and press EOF = exit code is not 0 => while end
I'm trying to compile and install both most recent version of 'make' and the
most recent version of 'openssh' on my Sparc20.
I've run into the following problems... and I don't know what they mean. Can
someone please help me resolve these issues?
I'm using the 'make' version that was... (5 Replies)
Hi
how can i do this?
1) shell script which writes data and time on to a file if filesystem exceeds 70% of space.
2) make entry to cron table to run a script every 15 mins.
and can anyone expplain or demonstrate the difference between variables used in inside a function and outside a... (3 Replies)
Hi,
I,ve a Unixware 7.1.3 working correctly for two years ago, since a several weeks I've a problem with the command last . The information that this command return is :
For example :
1.- The user root , time login : 12:15 h, time logoff 12:15 h (the real time is 14:00). Connected time is... (3 Replies)
I'm having problems uses "if"
it works fine when i do this.
#!/bin/sh
a= 10
qw= 2
w= 20
{
if && ;then
echo 3
fi
}
However if i try to do
#!/bin/sh
a= 10 (5 Replies)
Hello,
I am having problems with using less on
Linux version 2.6.18-92.1.17.el5 (brewbuilder@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)). I am using csh but have the same problems on bash.
If I pipe something to less it works perfectly i.e. cat file | less... (9 Replies)
Hello, I have the following piece of code that tries to retrieve the result of a .sh:
. $HOME/prueba/Scripts/Recogida/recogida_sedra.sh
resultado=$?
echo "el resultado es : $resultado"
if ; then
echo "Se va a preprocesar los archivos"
In the code of recogida.sh I have the... (8 Replies)
good friends I am new to linux and I have the following
TELNET service problem entering data devo
telnet to a Windows server 2003 server and passes
will not let me since the move to this server by
telnet tells me the characters and thus invalidates me
income, I have a service application... (1 Reply)
I have written the following code in cygwin to create directories in windows based on the parameter passed.
echo $1 > fullpath
path1=`awk -F / '{print $1}' $fullpath
path2=`awk -F / '{print $2}' $fullpath
if
then
if
then
if
then
continue
... (4 Replies)
I'm new in Shell Programming and Scripting, I would like to ask some questions.
ps -ef | grep $appNAme | grep -v grep <-- what will it return when it find a process is running? return 1 or 0
if
then
exit 1 <--- if = 0 , run this ?
else
continue <--- if = 1 , run this ?... (5 Replies)
Discussion started by: LoAlex
5 Replies
LEARN ABOUT MINIX
term
TERM(1) General Commands Manual TERM(1)NAME
term - turn PC into a dumb terminal [IBM]
SYNOPSIS
term [baudrate] [parity] [bits_per_character] [-dial_string] [device]
EXAMPLES
term 2400 # Talk to modem at 2400 baud
term 1200 7 even # 1200 baud, 7 bits/char, even parity
term 8 9600 /dev/tty01
# 9600 baud, 8 bits/char, no parity, use tty01
term -atdt12345 /dev/tty01
# Start with a command to dial out
DESCRIPTION
Term allows MINIX to talk to a terminal or modem over RS232 port 1. The program first sets the baudrate, parity and character length, and
then forks. The parent sits in a loop copying from stdin (usually the console's keyboard), to the terminal or modem (/dev/tty00). The
child sits in a loop copying from the terminal or modem (/dev/tty00) to standard output. Thus when RS232 port 1 is connected to a modem,
every keystroke typed on the keyboard is sent to the modem, and every character arriving from the modem is displayed. Standard input and
output may be redirected, to provide a primitive file transfer program, with no checking. Any argument that starts with a minus ('-') is
sent out to the modem, usually to dial out. Term accepts several commands that are formed by typing the escape character, CTRL-], and a
letter. Type CTRL-]? to see a list of commands. The subshell command is very important, it allows you to type in a ZMODEM command to
transfer data. Do not quit term to do this, or your modem line will be reset! Term keeps the modem line open on file descriptor 9 while
running the subshell, so you can type
<&9 >&9
at the end of your ZMODEM command to connect it to the modem.
Important note: to use term, it is essential that /etc/ttytab is configured so that there is no shell hanging on /dev/tty01. If there is,
both the shell and term will try to read from /dev/tty01, and nothing will work.
SEE ALSO rz(1), sz(1).
TERM(1)