12-04-2013
It's SunOS 5.8 on UNIX server. Should {} work here
Last edited by pat_pramod; 12-04-2013 at 12:25 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I am using few ISQL statements to update and delete from a few tables in sybase, now i want to roll back the transaction when any of the statements fail.How i can i capture these errors in the shell scripts.Please advise.
Thanks,
Gopi (4 Replies)
Discussion started by: bhgopi
4 Replies
2. Shell Programming and Scripting
Hi,
I have a script called read.sh that takes a file as input. Now I want to make that script take the file as input with a -f option preceding the filename. How can I do this validation. How can I find whether the given option is -f or not inside the script.
Thanks in advance (2 Replies)
Discussion started by: sendhilmani123
2 Replies
3. Shell Programming and Scripting
Hi,
I want to do the following validations in my script when my script gets 2 parameters as command line inputs.
My script expects 2 inputs : a -f option and a filename
If a filename is given as input without the -f option then I have to exit. If only -f option is given and no filename is... (6 Replies)
Discussion started by: sendhilmani123
6 Replies
4. Programming
Hi
I have the following block of code in korn shell and don't now how to refer to variable `print variable1.$dvd` ?
---
integer dvd=4
integer number=0
while (( dvd!=0 ))
do
print "Iteracja numer : $dvd"
print "$_" #it refers to $dvd var but want to refer... (3 Replies)
Discussion started by: presul
3 Replies
5. Shell Programming and Scripting
Korn Shell in AIX 6.1
I want to print the below shown pipe (|) separated list line by line.
line=es349889|nhb882309|ts00293|snh03524|bg578835|bg37900|rnh00297|py882201|sg175883
for i in line
do
echo "Hello $line "
done
I wanted to execute the above for loop. But i can't even set the... (3 Replies)
Discussion started by: polavan
3 Replies
6. UNIX for Dummies Questions & Answers
This may be a dumb question, but googling is not giving me an answer. I'm trying to figure out how to refer to an input file in my code.
Lets say i run a script in bash:
"sh shellscript.sh inputfile"
(Inputfile will be variable...whatever file i run the script on)
I wanted to make... (5 Replies)
Discussion started by: legato22
5 Replies
7. Shell Programming and Scripting
Hi i have to cut columns 2 to 6 from a file and assign it to arrays ,
The following code works
for ctcol in 2 3 4 5 6;
do
set -A a$ctcol $(cut -d, -f $ctcol test_file)
done
how ever this does not work
for ctcol in {2..6};
do
set -A a$ctcol $(cut -d, -f $ctcol test_file)... (4 Replies)
Discussion started by: 100bees
4 Replies
8. UNIX for Dummies Questions & Answers
There are two Korn Shell scripts :
script_1.ksh ( located in /home/dir1 )
script_2.ksh ( located in /home/dir2 )
Content of script_2.ksh is
#!/usr/bin/ksh
echo "Hello world.."
The script_2.ksh is called from within script_1.ksh using the following command :
./home/dir2/script_2.ksh
but... (7 Replies)
Discussion started by: kumarjt
7 Replies
9. Shell Programming and Scripting
Hi i have to find the shell script that contain the word
PROC__TO_UPDATE
SEARCH SHOULD BE INSENSITIVE AND SCRIPT CAN BE DEPLOYED IN ANY PATH.
I am on Solaris. (27 Replies)
Discussion started by: rafa_fed2
27 Replies
10. UNIX for Dummies Questions & Answers
I have a unix command that prompts for 'y'. How do I run this from my shell script? (4 Replies)
Discussion started by: Sree10
4 Replies
LEARN ABOUT SUNOS
wnnaccess
wnnaccess(1M) System Administration Commands wnnaccess(1M)
NAME
wnnaccess - Access control over Wnn6 Kana-Kanji conversion server/dictionary lookup server
SYNOPSIS
/usr/sbin/wnnaccess [-D jserver_name] [-ds wnnds_name] [-L LANG_name] [ -| +
[hostname | username] ]
DESCRIPTION
wnnaccess adds or deletes hosts and users, obtains the current access control information, enables or disables access control for access
permission retained by the Wnn6 Kana-Kanji conversion server/dictionary lookup server.
OPTIONS
The following options are available.
-D jserver_name Specifies the Wnn6 Kana-Kanji conversion server (jserver) to work on. If this option is omitted, wnnaccess refers to the
serverdefs file and determines the Kana-Kanji conversion server to work on.
The Kana-Kanji conversion server must be specified in the following format.
hostname Kana-Kanji conversion server that uses the well-known port number(22273) on host hostname
hostname:no Kana-Kanji conversion server that uses port number of " the well-known port number plus no" on host host-
name
hostname/port_noKana-Kanji conversion server that uses port_no as port number on host hostname
-ds wnnds_name Specifies the Wnn6 dictionary lookup server (wnnds) to work on.
The dictionary lookup server must be specified in the following format.
hostname Dictionary lookup server that uses the well-known port number(26208) on host hostname
hostname:no Dictionary lookup server that uses port number of "the well-known port number plus no" on host hostname
hostname/port_noDictionary lookup server that uses port_no as port number on host hostname
-L LANG_name Specifies the language. The language is used to refer to the serverdefs file and determine the server to connect. Specify
ja for the Solaris releases (Japanese version).
If no options are specified, wnnaccess writes the current access control information. The first line shows the current status of access
control enabled or disabled. The second and following lines show hosts and users that are given access rights as in any of the following
formats:
host-name All users can access from this host.
host-name: No users can access from this host.
host-name:user-name,user-name,..Only users shown in the list can access from this host.
@user-name This user can access from any host.
Specifying - option only enables access control. Specifying + option only disables access control. If access control is disabled, no
restriction is imposed on connection to the server.
If + option and hostname| username are specified, the host or user will be added to the access control. If - option and hostname| username
are specified, the host or user will be deleted from the access control. The format of hostname| username is the same as in displaying the
current access control information. If neither - nor + option is specified, the behavior will be the same as in specifying + option.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWjwnsu |
+-----------------------------+-----------------------------+
SEE ALSO
jserver(1M), wnnds(1M), wnnhosts(4), wnn_serverdefs(4)
SunOS 5.10 10 Jan 2003 wnnaccess(1M)