HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SFTP -B batchfile not working
Operating System - HP-UX
1833065
Members
2406
Online
110049
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-10-2010 01:16 PM
03-10-2010 01:16 PM
SFTP -B batchfile not working
I've createD an sftp perl script that calls a batchfile.Both files are stored under a windows server.
Please let me know which piece of my code below is causing the problem. Also, we are generating a public key.
perl script - "eft-corp-ftp"
use strict;
my ($lawdir, $runcmd, $server, $prodline, $workdir);
my ($datadir, $pagecmd, $pagehdr, $stat, $cp, $FTPPATH, $SrvAdr);
###
### Send out corp EFT
###
### start of script
###
use prodline;
($lawdir, $runcmd, $server, $prodline, $workdir,
$datadir, $pagecmd, $pagehdr) = &prodname($ARGV[0]);
system(“sftp –b EftCorpFtp.bat mailslot#23192-send:@sftp.xxxx.com”);
#RETCODE=$?
#if ($RETCODE != 0)
# {$pg = system("$pagecmd law2 -m $pagehdr Error completing FTP for eft.corp.txt Return code is $RETCODE. ");
# $pg = system("$pagecmd law1 -m $pagehdr Error completing FTP for eft.corp.txt Return code is $RETCODE. ");
# die 1;
# }
#fi
batchfile - "EftCorpFtp.bat"
rem Send out corp EFT to BMO
rem start of script
rem lcd - is the location of the eft.corp2.txt rem cd - is the target destination
ECHO executing the batchfile
lcd /primus/law/apps/dev/mpidata/eft
cd DEFTxxxx-1111OSC70-A:/*BIN
put eft.corp2.txt
quit
-- your assistance is truly appreciated.
Thanks.
Felisa
Please let me know which piece of my code below is causing the problem. Also, we are generating a public key.
perl script - "eft-corp-ftp"
use strict;
my ($lawdir, $runcmd, $server, $prodline, $workdir);
my ($datadir, $pagecmd, $pagehdr, $stat, $cp, $FTPPATH, $SrvAdr);
###
### Send out corp EFT
###
### start of script
###
use prodline;
($lawdir, $runcmd, $server, $prodline, $workdir,
$datadir, $pagecmd, $pagehdr) = &prodname($ARGV[0]);
system(“sftp –b EftCorpFtp.bat mailslot#23192-send:@sftp.xxxx.com”);
#RETCODE=$?
#if ($RETCODE != 0)
# {$pg = system("$pagecmd law2 -m $pagehdr Error completing FTP for eft.corp.txt Return code is $RETCODE. ");
# $pg = system("$pagecmd law1 -m $pagehdr Error completing FTP for eft.corp.txt Return code is $RETCODE. ");
# die 1;
# }
#fi
batchfile - "EftCorpFtp.bat"
rem Send out corp EFT to BMO
rem start of script
rem lcd - is the location of the eft.corp2.txt rem cd - is the target destination
ECHO executing the batchfile
lcd /primus/law/apps/dev/mpidata/eft
cd DEFTxxxx-1111OSC70-A:/*BIN
put eft.corp2.txt
quit
-- your assistance is truly appreciated.
Thanks.
Felisa
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP