.profile file error on HPUX 11.11


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting .profile file error on HPUX 11.11
# 1  
Old 12-29-2008
.profile file error on HPUX 11.11

Hi,

I am working on HPUX 11.11i and 11.10 boxes. My default shell is ksh.

I have the following entry in my profile file

Code:
HOSTNAME=`uname -n`

Every time I login to the server, this is the error I get:

${HOME:-.}/.profile[43]: syntax error: `)' unexpected

The line number shown is for the 'uname' command. I have also tried

Code:
HOSTNAME=`hostname`

and

Code:
HOSTNAME="$(/usr/bin/hostname)"

All these commands work properly if I execute them separately, but the error message is consistent whenever I use it in the profile file.

Please help!! SmilieSmilieSmilie
# 2  
Old 12-29-2008
Please post the whole file using code tags.
The line number in ksh error messages is not accurate.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

/etc/profile error

Hi Please can you help me in solving the following error as I am logging in with any user, on my HP-UX system. The error is /etc/profile: Syntax error: `then' is not matched. I have looked into /etc/profileline 125, but I dont see anything wrong. (7 Replies)
Discussion started by: fretagi
7 Replies

2. Shell Programming and Scripting

HPUX Syntax error at line 9 : `<' is not expected

Hi All, i'm getting this error, can somebody check? file name is like this 951957039339019_560119_000523_2w47_3060_0038_6002.log filename=$(basename "$1") extension="${filename##*.}" filename="${filename%.*}" IFS="_" read -r -a array... (2 Replies)
Discussion started by: charli1
2 Replies

3. HP-UX

pwage-hpux-T for Trusted HPUX servers

I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email. original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies

4. Shell Programming and Scripting

Dot profile not found error

During batch processing the following error occurs and will stop the process, ~environment_name/.profile : not found. The error happens randomly. Any ideas? (6 Replies)
Discussion started by: dlhinpgh
6 Replies

5. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

6. UNIX for Dummies Questions & Answers

make is giving error while installing cups in hpux

m installing cups-1.2.12 in hp-ux ./configure didnt give any error. but make gives the following error making all in cups... Compiling adminutil.c... In file included from http-private.h:142, from globals.h:35, from adminutil.c:47: /usr/include/net/if.h:240: error: field 'iftp_local' has... (5 Replies)
Discussion started by: rosalina
5 Replies

7. Post Here to Contact Site Administrators and Moderators

Error updating profile

I'm trying to update my profile with a temp e-mail address. This is a hotmail e-mail address and it wont allow it. The reason for this is I've changed my service with my ISP since I've moved :D and well I've gone form Cable to DSL :mad: Now my e-mail accounts are still there but I can't... (4 Replies)
Discussion started by: woofie
4 Replies

8. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies

9. UNIX for Dummies Questions & Answers

Serius ERROR on HPUX 1020

-Here's the funny thing - I have an old HPUX1020 D270 also known as "grandfather" Everything was all right until today... The users began to work as usual. Suddenly The server "kicked" out the users, and when trying to login back - The server returned with 2 different error mesgs: one is... (7 Replies)
Discussion started by: sunbird
7 Replies
Login or Register to Ask a Question