SFTP from UNIX to ALPHA Box (Stream_LF)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting SFTP from UNIX to ALPHA Box (Stream_LF)
# 1  
Old 11-10-2009
SFTP from UNIX to ALPHA Box (Stream_LF)

Hello,
I have a variable length record file that I am trying to SFTP from a UNIX box to a VMX Alpha box. I have no problem with any authenication. Every time I transfer the file, the file gets converted to a Stream_LF file layout on the VMS box. I have the logical on the VMS side (MULTINET_SFTP_TRANSLATE_VMS_FILE_TYPES) set to zero and that doesn't seem to help. I have also converted all LF to a CR and that's doesn't seem to help either. I understand that SFTP transfers in binary. Is it possible to use SFTP without the file being converted to Stream_LF? Any suggestions? Thanks, Barbara
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Transfering files from windows to unix box through sftp

Hello All, we have scenarion where we need to pull the Files from Windows to Unix Box through SFTP protocol. as per our analysis we did install the cygwin package on the Windows Box to have the openSSH package functionality. 1.Will openSSH help us to achieve the functionality what we are... (3 Replies)
Discussion started by: Amey Joshi
3 Replies

2. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

3. UNIX for Advanced & Expert Users

Copy file from unix box to another unix box

Hi, I am new for perl scripting, I need a script to copy a log file /test/test_yyyymmdd.dat from one unix box to another unix box location /check/check1/ at daily 2:00AM, please let me know how to do that...... Regards, Ann (8 Replies)
Discussion started by: fabrine
8 Replies

4. Shell Programming and Scripting

how to compare all files in one unix box has been to copied to another unix box

Hi our unix admin has copied all files from one unix box to new unix box. We just need to confirm that all the file systems are copied properly. How to validate. (9 Replies)
Discussion started by: sravanreddym
9 Replies

5. UNIX for Dummies Questions & Answers

I need an scp command from a unix box to a windows box.

scp file="myfile.txt" todir="user@somehost:(M:drive:/somepath/)"/ Not sure I need it to go to a specific drive on the windows box (1 Reply)
Discussion started by: xgringo
1 Replies

6. Shell Programming and Scripting

Moving files from Unix box to a windows box

Hi All, I need a little help .I want to transfer a file from unix box to a windows box,but the problem i'm facing is that in windows box FTP is not enabled and currently it is nearly impssible to change setting on windows box,i can not use the ftp method ,in my shell script to transfer the file.... (2 Replies)
Discussion started by: Preet
2 Replies

7. UNIX for Dummies Questions & Answers

SFTP file from unix box to a NT server

Hi, I've searched but I haven't found a clear answer on this. Is it possible to sftp a file from a unix box to an NT server (windows)? If it is possible how do I go about doing it? Any help would be much appreciated! Thank You! (5 Replies)
Discussion started by: queenie680
5 Replies

8. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

9. UNIX for Advanced & Expert Users

How to FTP a file generated at UNIX Box to NT Box

Hi all, I am generating a file on the Unix machine , now i want to FTP the same file to the NT machine. how can i do that and the application currently upon which i am working is a JAVA based application. I need your help. regards Ruchir (2 Replies)
Discussion started by: Ruchir
2 Replies

10. UNIX for Advanced & Expert Users

VPN client (windows Box),and Server (Unix Box)

If I want to access unix box via VPN tunnel,from windows box. What sould I configure on the windows client PC, and what should I enable on the Unix Server box ? I am using Solaris V10 intel platform, and I am using windows XP, and 2003 for client (0 Replies)
Discussion started by: zillah
0 Replies
Login or Register to Ask a Question
Net::SFTP::Foreign::Attributes(3pm)			User Contributed Perl Documentation		       Net::SFTP::Foreign::Attributes(3pm)

NAME
Net::SFTP::Foreign::Attributes - File/directory attribute container SYNOPSIS
use Net::SFTP::Foreign; my $a1 = Net::SFTP::Foreign::Attributes->new(); $a1->set_size($size); $a1->set_ugid($uid, $gid); my $a2 = $sftp->stat($file) or die "remote stat command failed: ".$sftp->status; my $size = $a2->size; my $mtime = $a2->mtime; DESCRIPTION
Net::SFTP::Foreign::Attributes encapsulates file/directory attributes for Net::SFTP::Foreign. It also provides serialization and deserialization methods to encode/decode attributes into Net::SFTP::Foreign::Buffer objects. USAGE
Net::SFTP::Foreign::Attributes->new() Returns a new "Net::SFTP::Foreign::Attributes" object. Net::SFTP::Foreign::Attributes->new_from_buffer($buffer) Creates a new attributes object and populates it with information read from $buffer. $attrs->as_buffer Serializes the Attributes object $attrs into a buffer object. $attrs->flags returns the value of the flags field. $attrs->size returns the values of the size field or undef if it is not set. $attrs->uid returns the value of the uid field or undef if it is not set. $attrs->gid returns the value of the gid field or undef if it is not set. $attrs->perm returns the value of the permissions field or undef if it is not set. See also "stat" in perlfunc for instructions on how to process the returned value with the Fcntl module. For instance, the following code checks if some attributes object corresponds to a directory: use Fctnl qw(S_ISDIR); ... if (S_ISDIR($attr->perm)) { # it is a directory! } $attrs->atime returns the value of the atime field or undef if it is not set. $attrs->mtime returns the value of the mtime field or undef if it is not set. %extended = $attr->extended returns the vendor-dependent extended attributes $attrs->set_size($size) sets the value of the size field, or if $size is undef removes the field. The flags field is adjusted accordingly. $attrs->set_perm($perm) sets the value of the permsissions field or removes it if the value is undefined. The flags field is also adjusted. $attr->set_ugid($uid, $gid) sets the values of the uid and gid fields, or removes them if they are undefined values. The flags field is adjusted. This pair of fields can not be set separatelly because they share the same bit on the flags field and so both have to be set or not. $attr->set_amtime($atime, $mtime) sets the values of the atime and mtime fields or remove them if they are undefined values. The flags field is also adjusted. $attr->set_extended(%extended) sets the vendor-dependent extended attributes $attr->append_extended(%more_extended) adds more pairs to the list of vendor-dependent extended attributes COPYRIGHT
Copyright (c) 2006-2008 Salvador Fandin~o. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-05-11 Net::SFTP::Foreign::Attributes(3pm)