- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need ftp script
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
06-10-2014 03:11 AM
06-10-2014 03:11 AM
Re: Need ftp script
>I have to manually execute the script.
Did you make the script executable? chmod a+x /usr/sap/RDV/SYS/global/ftp/RMPA/ftpcptest.sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2014 05:04 AM
06-10-2014 05:04 AM
Re: Need ftp script
I made the script executable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2014 08:41 PM
06-10-2014 08:41 PM
Re: Need ftp script
# ll
total 2
-rwxrwxrwx 1 root sys 391 Jun 10 10:35 ftpcptest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2014 12:05 AM
06-11-2014 12:05 AM
Re: Need ftp script
-rwxrwxrwx 1 root sys 391 Jun 10 10:35 ftpcptest
You should NOT make the file writable by everyone nor by group:
chmod go-w ftpcptest
If this is local and you're root, this should work, unless you have some unprintable chars in the crontab.
Use vis(1) to check:
crontab -l | vis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2014 02:42 AM - edited 06-16-2014 08:47 PM
06-11-2014 02:42 AM - edited 06-16-2014 08:47 PM
Re: Need ftp script
Hello SIr,
The script works good, however when the file is transfer through script the format is different.
And when it is ftp through SAP ftp application the format is different.My customer wants the same format as SAP ftp application.
Attaching both the files ,request you to please suggest on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 11:54 PM
06-16-2014 11:54 PM
Re: Need ftp script
>My customer wants the same format as SAP ftp application.
The two files seem to be input files and appear to be the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 11:59 PM
06-16-2014 11:59 PM
Re: Need ftp script
The file which is ftp through script,the info comes in 1 single line,
where as the file transferred by the SAP ftp application was in a proper human readable format.Request you to please suggest for the same or please share me your mail id i will send those files to you.
Thanks,
Vishal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2014 12:32 AM - edited 06-17-2014 11:49 AM
06-17-2014 12:32 AM - edited 06-17-2014 11:49 AM
Re: Need ftp script
>If you open it in notepad you will come to know.
I don't use notepad for that reason. :-)
Basically you copied the file in binary mode so it kept the LF terminator. Evil Windows wants CR/LR.
In the script I provided, change the line with "bin" to "ascii".
You need to be aware that ALL files will be transferred this way and would be assumed to be text files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2014 01:50 AM
06-17-2014 01:50 AM
Re: Need ftp script
I made the changes suggested by you & waiting for customers feedback.
However i wonder when i will become a good on scripting...
I want to learn it from basics ..please suggest me on this....
Thanks
Vishal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2014 09:30 PM
06-25-2014 09:30 PM
Re: Need ftp script
client need one more thing ,that whenever the script runs one mail should be triggered >how possibly could i do that this.
Please suggest .
Thanks & regards
Vishal
- « Previous
- Next »