ksh [ HP True 64 v5.1 ] and HP-UX B.11.11i


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ksh [ HP True 64 v5.1 ] and HP-UX B.11.11i
# 1  
Old 09-16-2005
ksh [ HP True 64 v5.1 ] and HP-UX B.11.11i

Hi Friends,

We have migrated our Unix from HP True 64 v5.1 to HP-UX B.11.11i recently and copied all my shell scripts ( Korn shell ) to new HP-UX B.11.11i unix machine. I've encountered lot of errors during execution of the scripts for example:

cat x.sh
#!/usr/bin/ksh
if [ -f abc.txt ]
then
echo abc.txt file exists...
else
echo abc.txt file does not exists...
fi

===============
x.sh: test: argument expected
abc.txt file does not exists...

In my old machine there were no problems, pls advise with how can I overcome from this kind of problems.

Thanks
Krishna
# 2  
Old 09-16-2005
Suppose if I copy ksh file from old machine into my $HOME/bin will it works and how is its behavior?
# 3  
Old 09-16-2005
ksh should be fairly constant across operating systems. The code that you have posted worked fine in FreeBSD. And no, you cannot just take a binary from Tru64 and expect it to work on HP.
# 4  
Old 12-19-2005
I tried that script on ab HP-UX 11i system and I cannot reproduce the error. It works fine for me.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Eclipse 3.1 on HP-UX 11i

Hey guys how do you run eclipse on HP-UX 11i? there's a startup.jar and an eclipse file ( which is not an executable ) I get different errors try to run the jar file with different java versions. I have all the possible java vm's installed. (0 Replies)
Discussion started by: binary0x01
0 Replies

2. HP-UX

Where can i get hp-ux 11i v3

I have to access to hp integrity bl870c server blade and i have no hp-ux 11i v2 or 11i v3 DVD's where can i get a DVD or download it . as i have no direct contact with vendor . thanks (4 Replies)
Discussion started by: h@foorsa.biz
4 Replies

3. HP-UX

HP UX 11i and HP C8000

Hey, i want install HP UX 11i on HP C8000. When i start the C8000 i get a prompt. On this Prompt i write BOot P1 P1 is my DVD-ROM (IDE). I get the Message "ERROR: Not a boot path". When i write SEArch the Prompt said: P0 scsiA.6 HP73.4MAT3073NP P1 ide.1 ... (2 Replies)
Discussion started by: numx
2 Replies

4. HP-UX

About compatibility of HP-UX 11i

Could you please tell me if Informix 7.20 UD2 works on HP-UX 11i and if applications that works on HP-UX 10.20 and Informix 7.20 UD2 works on HP-UX 11i. Thanks a lot. (0 Replies)
Discussion started by: Irene Martínez
0 Replies

5. UNIX for Dummies Questions & Answers

is it true or not

I have heard for a long time that in maybe 2039 Unix will no longer be useable due the length of the date value. Anyone know anything about this? (4 Replies)
Discussion started by: dhlopomo
4 Replies

6. HP-UX

How to use CSTM on HP-Ux 11i V2

Hi, Newbie here......I am an new guy on HP-Ux... may i ask all the the guru's and who has eperienced here to enlightened me on how to use the CSTM command. My goal is to view the current HW installed on the Server. Thanks in advance. (1 Reply)
Discussion started by: renobal
1 Replies

7. UNIX for Advanced & Expert Users

ksh read bug in HPUX 11i

Is this a bug in ksh on HPUX 11i or is read impromperly documented? INPUT Thu Jan 18 09:14:52 PST : CIFS: Virus Detected - File ONTAP_ADMIN$\vol\vol0\DDD\Ventana\Strattoni\Race Stuff\Rumor.exe in share DDD accessed by client CLIENT (111.11.11.111) running as user USER is infected. The filer... (3 Replies)
Discussion started by: Jackaroe
3 Replies

8. HP-UX

HP 11i 64

Hi, could somebody confirm that HP 11i 64 is a 64 bits system ? Thank you (1 Reply)
Discussion started by: aribault
1 Replies

9. HP-UX

HP-UX 11i

Need to find the changes made in hp-ux11iv2 and how to migrate from hp-ux11i to hp-ux11iv2. Thanks in advance. (1 Reply)
Discussion started by: mhbd
1 Replies

10. UNIX for Dummies Questions & Answers

hp-ux 11i

Need to find the changes made in hp-ux11iv2 and how to migrate from hp-ux11i to hp-ux11iv2. Thanks in advance. (1 Reply)
Discussion started by: mhbd
1 Replies
Login or Register to Ask a Question