Sorry for the delay in responding. I'll see if I can gather the HP-UX version info.
The sender claims that they are not prefixing tmp_
Main Topics
Browse All TopicsDoes anyone know how to stop SFTP on HP UNIX from prefixing the filename with tmp_ while the file is in transit? I do not want this to happen because it is breaking some automation on the receiving SFTP server.
If I look at the folder on the SFTP server as the file is coming in from a HP UNIX using SFTP, the filename has tmp_ on the beginning. Is it possible to prevent this behavior on the HP UNIX side? Maybe by specifying a parameter on the command line, or in a config file or something?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
OK, HP-UX 11i v1 doesn't include ssh/sftp as part of the standard operating system; HP supply a free add-on package (Secure Shell, based on OpenSSH, which includes sftp), but admins are free to install other software packages which is why I asked for the output of "swlist" (Assuming that it was installed as an HP-UX package! Otherwise the HP-UX admins will have to work harder to figure out where they installed the sftp client software and where they got it from)
Another possibility is that this SFTP implementation uses a configuration file that allows you to specify a temporary prefix (or suffix). Googling "sftp temporary rename" or "sftp tmp_" returns a few results indicating that this sort of thing is desirable in many SFTP implementations, but nothing concrete.
You could ask the HP-UX admins to test it themselves locally - sftp localhost and put a file, and while that's transferring, use another terminal to look in the receiving directory for *filename* and see if it gets a temporary "tmp_" prefix.
Alternatively - Does this happen with transfers from other Unix variants? And how does this break the automation on the receiving server? What OS & SFTP package does your server have? It may be easier for you to handle the issue there than convince a crusty old Unix admin that _he_ has a problem :-)
You may also want to use the "Request Attention" button to ask the Moderators to make this question visible to Experts in more Zones; Maybe Networking and Security?
Excellent response.
I especially like this part..
You could ask the HP-UX admins to test it themselves locally - sftp localhost and put a file, and while that's transferring, use another terminal to look in the receiving directory for *filename* and see if it gets a temporary "tmp_" prefix.
I should have thought of that one myself. I'll see what I can find out.
Sorry that I don't have more details. The HP-UX admins didn't say exactly what they did, but they did say that they did some poking around. Due to the fact that I have to go thru another person to get the details, and the fact that it is a customer I was unable to get more details. It would have been nice if they shared more because it helps us all to understand issues that might come up.
Business Accounts
Answer for Membership
by: tfewsterPosted on 2009-11-07 at 03:21:37ID: 25765830
I've not seen that behaviour, but it seems very sensible to avoid the problem of the receiving server trying to process a file before it's finished transferring.
What version of HP-UX & sftp are you using? On the HP-UX server;
uname -r
/usr/sbin/swlist -l file|grep sftp # lists product_name.fileset_name filename
/usr/sbin/swlist -l product <product name>
It's also possible that the sending sftp is scripted to do something like
put filename tmp_filename
rename tmp_filename filename