03-13-2009
Thanks Radoulov. It returned "bad sustitution" then it's ksh88.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I was wondering if there is anyway to use the curses library with ksh88. I saw Shell Curses function library which says I can use /usr/local/functions/shellcurses on ksh93 but I am on ksh88. I am on a HP-UX box. (0 Replies)
Discussion started by: IMTheNachoMan
0 Replies
2. Shell Programming and Scripting
Hello,
ksh88 doesn't support ${var:x:y}.
Any alternatives to get substring ?
thanks
Vilius (2 Replies)
Discussion started by: vilius
2 Replies
3. Shell Programming and Scripting
Hello,
I need ksh88 for my linux system - and I don't want pdksh.
Possible to get original ksh 88 binaries or source ?
(I don't need ksh93 which is available)
thanks
Vilius (1 Reply)
Discussion started by: vilius
1 Replies
4. Shell Programming and Scripting
I have to use KSH88, so going to BASH, perl etc. is not an option.
Below is a much simplified verison of what I am doing (aka ignore my cut command and i not increasing) :)
i=1
BIGSTRING="one two three four five six seven eight"
while ]; do
typeset "STRING$i=`echo $BIGSTRING| cut -d' '... (8 Replies)
Discussion started by: nitrobass24
8 Replies
5. Shell Programming and Scripting
Hi,
With:
# VALUES="one~two~~~"
# echo $VALUES | awk 'BEGIN {FS="~"} {print NF}'
5
I can determine the number of fields.
How to determine the number of fields with a value ?
In this case 2.
Thanks in advance,
ejdv (6 Replies)
Discussion started by: ejdv
6 Replies
6. Shell Programming and Scripting
Hi I tried the following string comparison script in Ksh88
#!/bin/ksh
str1='aC'
str2='ABC'
if
then
echo "Equal"
else
echo "Not Equal"
fi
Though str1 and str2 are not equal the script output says Equal .
Please correct me
Thanks (2 Replies)
Discussion started by: smile689
2 Replies
7. Shell Programming and Scripting
I'm using Ksh88 .
I've last day files in one directory and current month files in another directory , having the same naming convention.
Now i need to compare these folders size , if there is no change in these files then no action to be performed
else if there is a change then i need to call... (1 Reply)
Discussion started by: smile689
1 Replies
8. Shell Programming and Scripting
Hi I tried the following code to FTP the files from test server to dev
#!/bin/ksh
DST=/home/files
cd $DST
ftp -inv 'test_serv101' << EOF
quote USER test
quote PASS test
# File Path on test server
cd /etc/home/Or_Files
ascii
mget curMonth* $DST
quit
EOF
when i try the above code it... (4 Replies)
Discussion started by: smile689
4 Replies
9. Solaris
Hello,
I want to pick a random element from a list, and created these 2 lines, which work very well in ksh93. Unfortunately, I get this "bad substitution" message in ksh88.
I'm wondering if there's an equivalent to the second line of my script.. or if I have to install ksh93 to make this... (8 Replies)
Discussion started by: gfroute
8 Replies
10. UNIX for Advanced & Expert Users
Hi Experts,
I have several shell scripts that have been developed on a Linux box for korn ksh93.
If we want to run this software on an AIX 6.1 box that runs ksh88 by default can we just change the she-bang line to reference /bin/ksh93 which ships with AIX as its "enhanced shell" to ensure... (6 Replies)
Discussion started by: Keith Turley
6 Replies
LEARN ABOUT OPENSOLARIS
disown
disown(1) User Commands disown(1)
NAME
disown - ksh93 built-in function to disassociate a job with the current shell
SYNOPSIS
disown [job ...]
DESCRIPTION
The ksh93 disown command prevents the current shell from sending a HUP signal to each of the specified jobs when the current shell termi-
nates a login session.
If job is omitted, disown sends the HUP signal to the most recently started or stopped background job.
OPERANDS
The following operands are supported:
job Specifies the job or jobs on which disown operates.
Specify job as one of the following:
number Refers to a process ID.
-number Refers to a process group ID.
%number Refers to a job number.
%string Refers to a job whose name begins with string.
%?string Refers to a job whose name contains string.
%+ or %% Refers to the current job.
%- Refers to the previous job.
EXIT STATUS
0 Successful completion.
>0 One or more specified jobs does not exist.
EXAMPLES
Example 1 Disowning a Job
The following example disowns job 1:
example% disown %1
AUTHORS
David Korn, dgk@research.att.com
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Uncommitted |
+-----------------------------+-----------------------------+
SEE ALSO
bg(1), jobs(1), ksh93(1), wait(1), attributes(5)
SunOS 5.11 18 Apr 2007 disown(1)