In case $HOMEDIRS are really user home directories,
I guess that the files that you create in /Users/*/Library/Preferences/ have the wrong owner?
Then a better method is a start wrapper e.g. named "tn3270" in the user's path
that will be run by the user, and files will be owned by the user.
/path/to/real/tn3270 should not be in the user's PATH.
Hi,
have a basic query.
Please see the below code:
list="one two three"
for var in $list ; do
echo $var
list="nolist"
Done
Wht if I want to print only first/ last line in the list
Eg one & three
Regards
er_ashu (3 Replies)
Hi! I have a simple question about using a for loop.
I'm trying to open up all the zip files in the currect directory with ark, but I am getting the error "bash: syntax error near unexpected token `for $i ; do ark $i ; done ;
I looked in the info pages for bash, but I can't seem to figure... (2 Replies)
sorry for being dumb here, but is there a way my for loop can take an entire line of a file into consideration instead of each word in a line... ill explain
if i have a file like this
# cat list
serial: 23124
hostname: server1
and a script that does this
# cat list.sh
#!/bin/sh
... (6 Replies)
Hi everyone - just like to say great forum...I've learned a lot off here but I just can't figure this one out...(first post)
I'm writing a script to monitor a directory and email the latest modified file....(I realize there are better ways than I'm trying here...I don't like copying and pasting... (5 Replies)
hey guys
I would really appreciate some help, i need to do a project for a job that requires minimal UNIX scripting and im REALLY stuck
basically Im stuck at what i believe is something really simple but i just dont have a clue how to do it efficiently and properly and i REALLY appreciate some... (16 Replies)
Hi, I am trying to make a script to manage log. I want to write the name of the .gz I moved and the date :
for i in `ls $replog/*.gz`
do
echo " $i "
`echo $i date +%d:%m:%Y`
`echo $datee `>> $replog/mrnet.log
mv $i /var/log/vieux-logs
done
I need to echo... (10 Replies)
OS : RHEL 6.1
Shell : Bash
I had a similair post on this a few weeks back. But I didn't explain my requirements clearly then. Hence starting a new thread now.
I have lots of files in /tmp/stage directory as show below.
I want to loop through each files to run a command on each file.
I... (8 Replies)
Hi,
Sorry if this is a newbie question. I guess you can use either awk or shell script for this sequence of operations, but knowing very little about either of them I'm not sure how I should try to write this.
The basic objective is to copy certain files that are scattered all over my... (10 Replies)
Oracle Linux : 6.4/bash shell
In the below I want to break out of the loop when it enters the 5th iteration.
#!/bin/bash
for i in 1 2 3 4 5 6
do
echo "$i"
if
echo "Oh Nooo... i = $i. I need to stop the iteration and jump out of the loop"
then break
fi
done
But, it only... (3 Replies)
Discussion started by: John K
3 Replies
LEARN ABOUT BSD
tn3270
TN3270(1) General Commands Manual TN3270(1)NAME
tn3270 - full-screen remote login to IBM VM/CMS
SYNOPSIS
tn3270 sysname
DESCRIPTION
Tn3270 permits a full-screen, full-duplex connection from a VAX UNIX machine to an IBM machine running VM/CMS giving the appearance of
being logged in directly to the remote machine on an IBM 3270 terminal. Of course you must have an account on the machine to which you
wish to connect in order to log in. Tn3270 looks to the user in many respects like the Yale ASCII Terminal Communication System II.
Tn3270 is actually a modification of the Arpanet TELNET user interface (see telnet(1)) that interprets and generates raw 3270 control
streams.
Emulation of the 3270 terminal is done in the Unix process. This emulation involves mapping 3270-style commands from the host into appro-
priate sequences to control the user's terminal screen. Tn3270 uses curses(3x) and the /etc/termcap file to do this. The emulation also
involves simulating the special 3270 keyboard keys (program function keys, etc.) by mapping sequences of keystrokes from the ASCII key-
board into appropriate 3270 control strings. This mapping is terminal dependent and is specified in a description file,
/usr/share/misc/map3270, (see map3270(5)) or in an environment variable MAP3270 (see mset(1)). Any special function keys on the ASCII key-
board are used whenever possible. If an entry for the user's terminal is not found, tn3270 looks for an entry for the terminal type
unknown. If this is not found, tn3270 uses a default keyboard mapping (see map3270(5)).
The first character of each special keyboard mapping sequence is either an ASCII escape (ESC), a control character, or an ASCII delete
(DEL). If the user types an unrecognized function key sequence, tn3270 sends an ASCII bell (BEL), or a visual bell if defined in the
user's termcap entry, to the user's terminal and nothing is sent to the IBM host.
If tn3270 is invoked without specifying a remote host system name, it enters local command mode, indicated by the prompt ``tn3270>''. In
this mode, tn3270 accepts and executes the following commands:
open connect to a remote host
close close the current connection
quit exit tn3270
z suspend tn3270
status print connection status
? print help information
Other common telnet commands are not available in tn3270. Tn3270 command mode may also be entered, after connecting to a host, by typing a
special escape character (typically control-C).
While in command mode, any host login session is still alive but temporarily suspended. The host login session may be resumed by entering
an empty line (press the RETURN key) in response to the command prompt. A session may be terminated by logging off the foreign host, or by
typing ``quit'' or ``close'' while in local command mode.
FILES
/etc/termcap
/usr/share/misc/map3270
AUTHOR
Greg Minshall
SEE ALSO mset(1), telnet(1), termcap(3x), termcap(5), map3270(5), Yale ASCII Terminal Communication System II Program Description/Operator's Manual
(IBM SB30-1911)
BUGS
Performance is slow and uses system resources prodigiously.
Not all 3270 functions are supported, nor all Yale enhancements.
4.3 Berkeley Distribution November 27, 1996 TN3270(1)