- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help with a .CSV file and my UNIX box
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
Discussions
Forums
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
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
тАО07-18-2001 07:51 AM
тАО07-18-2001 07:51 AM
Help with a .CSV file and my UNIX box
Currently he sends me an email that has the .CSV file as an attachment and of course I want to scriptize the whole process of getting the file, stripping out the informatin I need, and storing it on my UNIX server.
I can strip out the information and store it, but what I need help is how do I get it from a .CSV email attachment into a form I can work with?
I have seen many postings about taking and attaching files as attachments and sending it to Exchange but not the other way.
Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2001 07:57 AM
тАО07-18-2001 07:57 AM
Re: Help with a .CSV file and my UNIX box
Brent
Why not use ftp to get or receive the file?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2001 08:05 AM
тАО07-18-2001 08:05 AM
Re: Help with a .CSV file and my UNIX box
I thought it should be fairly straightforward to automatically save the attachment..but perhaps I am making this harder than it has to be?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2001 08:19 AM
тАО07-18-2001 08:19 AM
Re: Help with a .CSV file and my UNIX box
If the NT admin sets up ftp for you then you can cron a small script to pick up the csv file.
# Get the file
ftp -n
prompt
binary
cd
get *.csv
quit
End_of_Ftp
echo "Send to 172.20.20.17 done"
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2001 08:20 AM
тАО07-18-2001 08:20 AM
Re: Help with a .CSV file and my UNIX box
If the NT admin sets up ftp for you then you can cron a small script to pick up the csv file.
# Get the file
ftp -n
prompt
binary
cd
get *.csv
quit
End_of_Ftp
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2001 08:52 AM
тАО07-18-2001 08:52 AM
Re: Help with a .CSV file and my UNIX box
You can find it at the HP-UX Porting Centre
http://hpux.cs.utah.edu
and do a search for ripmime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2001 09:30 AM
тАО07-18-2001 09:30 AM
Re: Help with a .CSV file and my UNIX box
using the .forward file or the sendmail aliases file.
Perl has modules for working with MIME messages.
MIME::Parser and perhaps MIME::Entity will be of use.
The following Perl code reads a MIME message from
stdin and saves the mesg body and the attachments
to the directory "somedir".
use MIME::Parser;
$p = new MIME::Parser;
$p->output_dir("somedir");
$e = $p->read(\*STDIN);
HTH