- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- identifying any invalid char in a file.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 10:49 AM
12-06-2007 10:49 AM
identifying any invalid char in a file.
adedd03n:root [/opt/local/unix/eracc/var/eracc] ll ediemerg
-rw------- 8 root sys 1 Dec 6 12:03 ediemerg
adedd03n:root [/opt/local/unix/eracc/var/eracc] cat ediemerg
kumarts
adedd03n:root [/opt/local/unix/eracc/var/eracc] od -cx ediemerg
0000000 6b75 6d61 7274 730a
k u m a r t s \n
0000010
2:-
adedd03n:root [/opt/local/unix/eracc/var/eracc] od -cx /opt/local/unix/eracc/var/eracc/ediemerg
0000000 6b75 6d61 7273 3130 0a00
k u m a r s 1 0 \n
0000011
adedd03n:root [/opt/local/unix/eracc/var/eracc] ll ediemerg
-rw------- 1 root sys 9 Dec 6 12:00 ediemerg
adedd03n:root [/opt/local/unix/eracc/var/eracc] od -cx /opt/local/unix/eracc/var/eracc/ediemerg
0000000 6b75 6d61 7273 3130 0a00
k u m a r s 1 0 \n
0000011
adedd03n:root [/opt/local/unix/eracc/var/eracc] cat /opt/local/unix/eracc/var/eracc/ediemerg
kumars10
I this scenario i am getting "invlaid control file format". It happens only to the use kumars10 and which have a 8 char while other working users have only 7 char user id, like kumarts.
so i am looking for any hidden enrties or some thing which i am not able to identify and which could cause an error reported
here is the binary i use to enable/disable the id.When enabled the control file (/opt/local/unix/eracc/var/eracc/ediemerg) occupies a particular user id and when disabled it become a blank line file with file size 1.
here is the binary i use to enable/disable the id.
adedd03n:root [/opt/local/unix/eracc/var/eracc] ll
total 2
-rw------- 1 root sys 1 Dec 6 12:03 ediemerg
adedd03n:root [/opt/local/unix/eracc/var/eracc] cat ediemerg
adedd03n:root [/opt/local/unix/eracc/bin] file eracc
eracc: PA-RISC1.1 shared executable dynamically linked
adedd03n:root [/opt/local/unix/eracc/bin] what eracc
eracc:
I am not sure if that binary is some thing which HP supports or provided by HP.
any suggetions would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 11:56 AM
12-06-2007 11:56 AM
Re: identifying any invalid char in a file.
> i am getting "invlaid control file format".
From what? "eracc"? What is that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 12:19 PM
12-06-2007 12:19 PM
Re: identifying any invalid char in a file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 12:21 PM
12-06-2007 12:21 PM
Re: identifying any invalid char in a file.
can you please try to explean the problem you are facing?
ps eracc is not standart hp. (as far I can findout)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 12:37 PM
12-06-2007 12:37 PM
Re: identifying any invalid char in a file.
I am in touch with the developer now to check the source code ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2007 05:39 PM
12-08-2007 05:39 PM
Re: identifying any invalid char in a file.
Wrong:
/* read one line from control file */
fgets(readbuf,MAXLNLEN+1,fd);
fclose(fd);
Fixed:
/* read one line from control file */
fgets(readbuf,MAXLNLEN+2,fd);
fclose(fd);