Died on Signal 13

Hi,

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.:-(

Thanks
suhas_jainAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
#define SIGPIPE         13      /* write on a pipe with no one to read it */
ahoffmannCommented:
please post the script if gheist's hint isn't sufficient
suhas_jainAuthor Commented:

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
{

print "\nIP ADDRESS=$IP_ADD\nSYSTEM=$SYS_ID\nREGION ID=$REG_ID\n"

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
close
bye
EOFFTP

}

This function is called multiple times by the main script in a loop.
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

ahoffmannCommented:
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.
suhas_jainAuthor Commented:
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.
Artysystem administratorCommented:
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.
gheistCommented:
ident is useful on multiuser machines to punish guilty. nothing more.
GranModCommented:
PAQed with points refunded (200)

GranMod
Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.