Died on Signal 13

Posted on 2006-04-07
Last Modified: 2013-12-16

I have a korn shell script on a HP UNIX box. This script tries to FTP (GET) files from various other boxes. So basically ...
a. It connects to a system
b. GETs the file
c. Closes the connection
d. does other stuff ... which I dont think is important here.

Steps a-d are repeated several times.

Everytime an FTP connection is established, " ident/tcp: Died on signal 13" error is recorded in the syslog.

When I do this manually though, from a command prompt it works fine. No error in the syslog.

I thought this could be a congestion problem and tried using "sleep 120" between calls. But that didnt work. Same error was recorded in the syslog.

Can anyone help me fix this problem. My SA gets paged everytime I run this from the CRON and he isn't exactly happy.:-(

Question by:suhas_jain
    LVL 61

    Expert Comment

    #define SIGPIPE         13      /* write on a pipe with no one to read it */
    LVL 51

    Expert Comment

    please post the script if gheist's hint isn't sufficient

    Author Comment


    I was googling for a solution and found one in the HP Unix forum. The suggestion was to comment out IDENTD entry in the inetd.conf file. It seems to work perfectly fine. But my SA didn't  like this solution much.

    Gheist - I've to confess, I'm not sure what you are hinting at. Please can you explain in detail.

    Also NOW, I see this error even when I FTP from the command prompt. So it's not the script that's the problem. For some reason I didnt see the error from command prompt when I first posted my question. I apologize for that.

    AHoffman - Here is the script.

    function get_Files


    ftp -nvi <<-EOFFTP
    open $IP_ADD
    quote user ${FTP_USER}
    quote pass ${FTP_PASS}
    cd ../reports
    cd SQI
    lcd $TMP_DIR
    get indexes indexes.$SYS_ID.$REG_ID.$YEAR.$MONTH.$DAY


    This function is called multiple times by the main script in a loop.
    LVL 51

    Expert Comment

    sounds like your ftp client uses ident to check the user name, this is probably caused by the -n option (if it is an ncftp)
    Check your manuals how that works.

    Author Comment

    Not sure if -n is the problem. Because when I ftp from the command prompt even with no options used just a simple "ftp ip_add" causes this error.

    More I look into various forums, I'm convinced this is a know issue with the HP Unix 11.00 and 11.11 boxes. The only fix for now I guess is commenting out the IDENTD entry.

    I'll see if I'm able to convince my SA to install a suggested patch for this problem (phne_24419). Hope that helps.

    Thank you gheist and ahoffman for trying.
    LVL 27

    Expert Comment

    ahoffnam, ftp server, not client asks for identd reply after each connection.
    suhas_jain, yes, comment indent line, it's quiet obsolete and unreliable protocol.

    As for me, it's still not clear why this works from manual run and doesn't work from script.
    LVL 61

    Expert Comment

    ident is useful on multiuser machines to punish guilty. nothing more.

    Accepted Solution

    PAQed with points refunded (200)

    Community Support Moderator

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
    Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now