- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SFTPG3 rename command - issue
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
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
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
11-03-2010 11:20 AM
11-03-2010 11:20 AM
SFTPG3 rename command - issue
Example: rename filename.tmp fileother.dat (this works fine)
But, if you use rename /home2/filename.tmp /home1/fileother.dat/ it does not working anymore.
do anyone knows how this cmd works?
trying to send file from mainframe to seebeyond server (batch)
Thanks for any clue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2010 11:34 AM
11-03-2010 11:34 AM
Re: SFTPG3 rename command - issue
> (batch)
That tells me very little about the systems
involved. You're asking this in an HP-UX
forum. Is any of these systems running
HP-UX?
> But, if you use rename /home2/filename.tmp
> /home1/fileother.dat/ it does not working
> anymore.
"not working" is not a useful problem
description. Did you get an error message?
Are "/home1" and "/home2" different file
systems? On many systems, a rename operation
("mv", ...) is valid only within a file
system, not between file systems.
What happens if you try to rename between,
say, "/home2/filename.tmp" and
"/home2/filename.xxx", or
"/home2/dir1/filename.tmp" and
"/home2/dir2/filename.xxx", that is,
including "reference related to directories",
but _not_ trying to move off "/home2"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2010 09:10 AM
11-04-2010 09:10 AM
Re: SFTPG3 rename command - issue
I have more information, see below:
These are the parameters used in SFTPG3 execution test.
cd /dir001/ab11/proj/client/mainfr/intf250/OutBound/legacy/tmp/
ascii
sput //'FILE.APLIC.DATA1A' TSTDATA1A_20101104135500001.tmp
ren TSTDATA1A_20101104135500001.tmp +
/sbapp01/me11/proj/GMLDROPZ/MAINFR/MMI0250/OutBound/legacy +
/TSTDATA1A_20101104135500001.dat
quit
Result of the SFTPG3 execution:
Mainframe Job was interrupted by return code = R0256
Sysout of PROUT.STDOUTPR:
sftp> cd /sbapp01/me11/proj/GMLDROPZ/MAINFR/MMI0250/OutBound/legacy/tmp/
sftp> ascii
sftp> sput //'FILE.APLIC.DATA1A' TSTDATA1A_20101104135500001.tmp
'FILE.APLIC.DATA1A' | 370kB | 158.6kiB/s | TOC: 00:00:02
sftp> ren TSTDATA1A_20101104135500001.tmp +
sftp> /sbapp01/me11/proj/GMLDROPZ/MAINFR/MMI0250/OutBound/legacy +
sftp> /TSTDATA1A_20101104135500001.dat
Message:
Error: File with new name already exists
Error: Unknown command `/sbapp01/me11/proj/GMLDROPZ/MAINFR/MMI0250/OutBound/legacy´.
Error: Unknown command `/TSTDATA1A_20101104135500001.dat'.
Issue:
It seems that RENAME command is not understading the other two lines.
Rename command was split in 3 lines due to our solution and limitation of the environment.
So, do you know what is the right character or way that means the continuation of a command in other line for sftp?
The process needs to rename and move the file from /tmp/ to /legacy/.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2010 09:16 AM
11-04-2010 09:16 AM
Re: SFTPG3 rename command - issue
These are the parameters used in SFTPG3 execution test.
cd /dir001/ab11/proj/client/mainfr/intf250/OutBound/legacy/tmp/
ascii
sput //'FILE.APLIC.DATA1A' TSTDATA1A_20101104135500001.tmp
ren TSTDATA1A_20101104135500001.tmp +
/dir001/ab11/proj/client/mainfr/intf250/OutBound/legacy/tmp/ +
/TSTDATA1A_20101104135500001.dat
quit
Result of the SFTPG3 execution:
Mainframe Job was interrupted by return code = R0256
Sysout of PROUT.STDOUTPR:
sftp> cd /dir001/ab11/proj/client/mainfr/intf250/OutBound/legacy/tmp/
sftp> ascii
sftp> sput //'FILE.APLIC.DATA1A' TSTDATA1A_20101104135500001.tmp
'FILE.APLIC.DATA1A' | 370kB | 158.6kiB/s | TOC: 00:00:02
sftp> ren TSTDATA1A_20101104135500001.tmp +
sftp> /dir001/ab11/proj/client/mainfr/intf250/OutBound/legacy +
sftp> /TSTDATA1A_20101104135500001.dat
Message:
Error: File with new name already exists
Error: Unknown command `/dir001/ab11/proj/client/mainfr/intf250/OutBound/legacy´.
Error: Unknown command `/TSTDATA1A_20101104135500001.dat'.
Issue:
It seems that RENAME command is not understading the other two lines.
Rename command was split in 3 lines due to our solution and limitation of the environment.
So, do you know what is the right character or way that means the continuation of a command in other line for sftp?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2010 09:35 AM
11-04-2010 09:35 AM
Re: SFTPG3 rename command - issue
> understading the other two lines.
> Rename command was split in 3 lines due to
> our solution and limitation of the
> environment.
My psychic powers are too weak to tell me
what "our solution" and "the environment"
might be. Or, for that matter, what "sftpg3"
is (or, if there's more than one version of
it, which version you might be using). I can
guess that it's an SFTP client program, but
that's only a guess.
> So, do you know what is the right character
> or way that means the continuation of a
> command in other line for sftp?
Knowing exactly nothing about what you're
doing where how with what, I'd guess "\".
Do you really expect to get useful (free)
advice if you answer no questions, and supply
almost no useful information about your
environment?
> The process needs to rename and move the
> file from /tmp/ to /legacy/.
As I tried to explain earlier, this may not
be possible, but, with no useful information,
it's hard to do more than guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2010 12:01 PM
11-04-2010 12:01 PM
Re: SFTPG3 rename command - issue
my psychic powers are telling me that you are a really "nice" person that really "wants" to help.
so, thank you for your time, I have already solved the problem and for your information SFTPG3 is a native transaction of TECTIA 6.1.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2010 12:04 PM
11-04-2010 12:04 PM
Re: SFTPG3 rename command - issue
Can you please post what the solution was? In case anyone should come across this thread in the future knowing what the solution was could be helpful for them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2010 02:00 PM
11-04-2010 02:00 PM
Re: SFTPG3 rename command - issue
> are a really "nice" person that really
> "wants" to help.
I could be the nicest person on the planet,
but there are limits to how helpful I can be
when given a problem description like "Using
an unidentified program which might be an
SFTP client, on an unidentified system,
connected to another unidentified system,
when I use some undisclosed command, I get
some kind of error, but I won't share the
details of the command or the message."
And then you don't answer simple questions.
What, exactly, did you expect?