05-09-2011
it's just a decimal value, like 1, 2, 3 and so on
sio reads a value from a com-port and sends it to the terminal
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to run the script bellow but its given me "syntax error at line 20 :'done' unexpected." error message"
can someone check to see if the script is ok? and correct me pls.
Today is my first day with scripting.
Gurus should pls help out
#!/bin/ksh
# Purpose: Check to see if file... (3 Replies)
Discussion started by: ibroxy
3 Replies
2. Solaris
one of my script as follows
HOME=/apps/logs
mv $HOME/cron.log $HOME/cron.log.`date +%Y-%m-%d`
touch $HOME/cron.log
fi
i am getting error as follows
on the last line we are getting ...
"syntax error near unexpected token `fi' "
please suggest.... (4 Replies)
Discussion started by: GIC1986
4 Replies
3. Shell Programming and Scripting
Hello. Please help with this code. Returns an error message "syntax error near unexpected token =~. Conditional binary operator expected.
if " ]] || " ]]
then
echo "Enter only valid numbers"
fi (2 Replies)
Discussion started by: Pauline mugisha
2 Replies
4. Shell Programming and Scripting
Hi, i am getting error from below script.
Error: s1.sh: line 19: ((: j<: syntax error: operand expected (error token is "<")
#!/bin/bash
str=$(ps -eaf | grep smon | grep -v grep | awk ' {print $8}' | cut -c10-18)
i=1
while
do
temp=`echo $str|awk '{print $"'$i'"}'`
... (12 Replies)
Discussion started by: lakshmikanthe
12 Replies
5. Programming
Hey all. I've been working on some fun with C and decided to write a Rock Paper Scissors game. The problem is, that when I try to compile the file, it gives "lvalue required as left operand of assignment" error. The error line is here:
for ((point1=0 && point2=0); ((point1=3) || (point2=3));... (4 Replies)
Discussion started by: drouzzin
4 Replies
6. Shell Programming and Scripting
the below code will search attr string inside makefile under the modelno on given path.
echo "Enter model no for searching string inside makefile"
read inputs2
#find /pools/home_unix/sapte/work/models/model/$inputs2 -name "makefile" | xargs grep "attr" \;
#;;I am getting below error.... (7 Replies)
Discussion started by: lathigara
7 Replies
7. Homework & Coursework Questions
1. After trying to compile code error is given Lvalue required as left operand of assignment.
2. Relevant commands, code, scripts, algorithms:
if , else if
3. The attempts at a solution (include all code and scripts):
/*
File: incircles.cpp
Created by: James Selhorst
... (2 Replies)
Discussion started by: c++newb
2 Replies
8. Shell Programming and Scripting
Hi All,
Please hav a look at the below peice of script and let me know if there are any syntax errors.
i found that the below peice of Script is causing issue. when i use SFTP its working fine, but there is a demand to use FTP only. please find below code and explain if anything is wrong... (1 Reply)
Discussion started by: mahi_mayu069
1 Replies
9. Shell Programming and Scripting
While i m running below code, it is giving me the error"syntax error at line 15: `end of file' unexpected".
Pls let me know what is wrong here..i tried many ways, but no luck
dbSID="SWQE"
usrname="apps"
password="Wrgthrk3"
count=0
while
do
sqlplus $usrname/$password@$dbSID... (5 Replies)
Discussion started by: millan
5 Replies
10. BSD
#!/bin/bash
#--------------------------------------------------------
# Setup prompt
# Author Zeeshan Mirza
# Data: 06-08-2017
#--------------------------------------------------------
if
then
. ./.profile_custom_pre
fi
umask 022
set -o vi
export EDITOR=vi
export VISUAL=vi... (3 Replies)
Discussion started by: getzeeshan
3 Replies
TELNETD(8) System Manager's Manual TELNETD(8)
NAME
telnetd - DARPA TELNET protocol server
SYNOPSIS
/usr/libexec/telnetd
DESCRIPTION
Telnetd is a server which supports the DARPA standard TELNET virtual terminal protocol. Telnetd is invoked by the internet server (see
inetd(8)), normally for requests to connect to the TELNET port as indicated by the /etc/services file (see services(5)).
Telnetd operates by allocating a pseudo-terminal device (see pty(4)) for a client, then creating a login process which has the slave side
of the pseudo-terminal as stdin, stdout, and stderr. Telnetd manipulates the master side of the pseudo-terminal, implementing the TELNET
protocol and passing characters between the remote client and the login process.
When a TELNET session is started up, telnetd sends TELNET options to the client side indicating a willingness to do remote echo of charac-
ters, to suppress go ahead, and to receive terminal type information from the remote client. If the remote client is willing, the remote
terminal type is propagated in the environment of the created login process. The pseudo-terminal allocated to the client is configured to
operate in "cooked" mode, and with XTABS and CRMOD enabled (see tty(4)).
Telnetd is willing to do: echo, binary, suppress go ahead, and timing mark. Telnetd is willing to have the remote client do: binary, ter-
minal type, and suppress go ahead.
SEE ALSO
telnet(1C)
BUGS
Some TELNET commands are only partially implemented.
The TELNET protocol allows for the exchange of the number of lines and columns on the user's terminal, but telnetd doesn't make use of
them.
Because of bugs in the original 4.2 BSD telnet(1C), telnetd performs some dubious protocol exchanges to try to discover if the remote
client is, in fact, a 4.2 BSD telnet(1C).
Binary mode has no common interpretation except between similar operating systems (Unix in this case).
The terminal type name received from the remote client is converted to lower case.
The packet interface to the pseudo-terminal (see pty(4)) should be used for more intelligent flushing of input and output queues.
Telnetd never sends TELNET go ahead commands.
4.2 Berkeley Distribution November 16, 1996 TELNETD(8)