Search Results

Search: Posts Made By: targetshell
Forum: AIX 10-07-2013
2,355
Posted By targetshell
Hi there, My system has CICS program on AIX...
Hi there,

My system has CICS program on AIX OS for sending files to another mainframe server, which also has CICS.

So it is a CICS to CICS communication.

The issue is that now CICS program...
Forum: AIX 10-04-2013
2,355
Posted By targetshell
Send a file from AIX to PCOMM server
Hi folks,

I am having an issue here.Currently, my system sends a file from AIX using CICS program to mainframe .

However, Now I need to send file from AIX using CICS program or any other...
1,179
Posted By targetshell
O/P same as on screen
#Random Scripts 4
#Desc:
clear
echo "1. To see all processes currently running on the system"
echo "2. To kill any given process"
echo "Choose between the two"
read x
case $x in
...
2,655
Posted By targetshell
Hi Andrew, I have the same question as in...
Hi Andrew,

I have the same question as in what is the purpose of the "Second print" that you used in the script.

Rgds,
2,655
Posted By targetshell
Thanks it worked !! Can you explain the...
Thanks it worked !!

Can you explain the changes in the scripts and justifications of the same.
2,655
Posted By targetshell
I am on AIX 5.3 having Korn shell. ...
I am on AIX 5.3 having Korn shell.

Furthermore, if you have noticed my original script contains "print" command only.

Plz advise !
2,655
Posted By targetshell
Shell should take input from the user instead of...
Shell should take input from the user instead of assuming it to be "4"

---------- Post updated at 08:44 AM ---------- Previous update was at 08:41 AM ----------




I should have quoted that...
2,140
Posted By targetshell
Hi can you explain the usages of each command...
Hi can you explain the usages of each command that you used.

What tr -d does?
'[:alpha:]'
??
2,655
Posted By targetshell
Hi there, I got O/p from the above script...
Hi there,

I got O/p from the above script as:

1234123121

I want it to be as shown below:

1234
123
12
1

Plz advise !!!
2,655
Posted By targetshell
How to print in the new line?
I have written below script for the output:

1234
123
12
1


" {
read x
y=$x
i=1
while [ $i -le $x ]
do
j=1
while [ $j -le $y ]
do
if [ $i == 1 ]
then
print -n $j
1,542
Posted By targetshell
many thanks for the horizontal version...
many thanks for the horizontal version script.However, I would like to ask that why my script is not working???

After making your changes below is the output

#
##
###
##
while1[14]: i++:...
1,542
Posted By targetshell
while1 3 My logic is: First Loop: i=1 # ...
while1 3
My logic is:
First Loop:
i=1 #
i=2 ##
i=3 ###
Second Loop:
j=2 * 3 =6
for 3<6 Out as it is ###
for 4<6 Out as it is last character trimmed ##
for 5<6 Out as it is last...
1,542
Posted By targetshell
Suggestions on this script please
i=1
out=""
j=`expr 2 * $1`
while [ $i -le $1 ]
do
out="$out"#""
echo $out
((i=i+1))
done
while [ $i -lt $j ]
do
print ${out%?}
((i=i+1))
done

This...
948
Posted By targetshell
Not gettting target output using this
i=1
out="_"
while [ $i -le 5 ]
do
j=0
IN=""
while [ $j -lt $i ]
do
IN="|"$IN
j=`expr $j + 1`
done
print -n $IN$out
i=`expr $i + 1`
done
Actual O/P:...
2,632
Posted By targetshell
Sorry to say but I am not a shell expert so still...
Sorry to say but I am not a shell expert so still in doubt about the usage of "OUT" variable


Rgds,
TS

---------- Post updated at 05:17 AM ---------- Previous update was at 04:58 AM...
2,632
Posted By targetshell
Fine !!! But how this thing helped in...
Fine !!!

But how this thing helped in getting i values horizontally?

And can you explain the syntax
out=$out$i
2,632
Posted By targetshell
Thanks boss !!! This thing worked. But...
Thanks boss !!! This thing worked.

But please if possible could you explain the usage of OUT in the above script?

out=""
out=$out$i
echo "$out"

Rgds,
TS
2,632
Posted By targetshell
print -n option gives me below output: ...
print -n option gives me below output:

122333444455555

However, I need output

1
22
333
4444
55555
2,632
Posted By targetshell
So while running the script I need to type...
So while running the script I need to type SCRIPT.sh -xv.

You meant to say that?

Rgds,
TS

---------- Post updated at 10:55 AM ---------- Previous update was at 10:55 AM ----------

Guys,...
8,199
Posted By targetshell
And how to identify which korn shell is there on...
And how to identify which korn shell is there on my OS?


Rgds,
TS
8,199
Posted By targetshell
ksh for loop
Any reason why this thing doesn't works in Korn Shell

for (( expr1; expr2; expr3 ))
do
..... ... repeat all statements between do and ...
2,632
Posted By targetshell
Thanks all guys, I am newbie here and it...
Thanks all guys,

I am newbie here and it seems you guyz blasted it within seconds.These spaces are killing in Shell scripting.

And guyz can you tell how to check for an error while executing a...
2,632
Posted By targetshell
What is issue with this script?
#!/bin/ksh
i=1
while [ $i -le 5 ]
do
j=0
while [ $j -lt $i ]
do
echo "$i"
j =`expr $j + 1`
done
i=`expr $i + 1`
done
Showing results 1 to 23 of 23

 
All times are GMT -4. The time now is 06:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy