Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
google site



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-12-2010
Registered User
 

Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Filelink on UNIX

Hi guys,
I have a script which is going to pull a file from a directory on my Unix server, and send it in a mail. However, I would like to filelink this file and drop it in the email.

How would I do this? For those of you who do not know filelink, you simply drag the file onto the filelink icon, then press ctrl+c in the email, and it pastes a link from which the recipient can access this file.

How can I write this on Unix.

Cheers, G.

---------- Post updated 03-12-10 at 08:56 AM ---------- Previous update was 03-11-10 at 08:42 PM ----------

Ok...maybe we all aren't familiar with Filelink! lol.

Is there any other method for sending large files that will not clogg the recipient inbox..we're talking 25MB. Done via unix.
Sponsored Links
  #2  
Old 03-12-2010
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 6,729
Thanks: 0
Thanked 53 Times in 50 Posts

Code:
gzip -9 bigfile
uuencode bigfile.gz | mailx -s 'attached: bigfile.gz'  someuser@someplace.com

You can also send the full path of the file and let the user download it.
  #3  
Old 03-12-2010
Registered User
 

Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
The recipient does not have unix to decode this file. So i don't think unix to unix encoding will work..?
  #4  
Old 03-12-2010
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 3,095
Thanks: 6
Thanked 51 Times in 51 Posts
uuencode is standard email attachment encoding, considered appropriate and borrowed since it can represent arbitrary binary data as line-length-limited ASCII text. All email attachments use it though you seldom see the underlying details like this.

But you wanted a way to create a link to the file, not just email it whole. First, you need a host you control, ideally a web server. Second, you put a file on it, perhaps with scp? Third, you send someone a link to it. Details depend on your webserver and how you want to implement this. using filelink may not be practical unless filelink offers a UNIX interface since reverse-engineering the filelink binary executable would be a herculean task.
  #5  
Old 03-12-2010
kshji's Avatar
Registered User
 

Join Date: Jun 2009
Location: Finland
Posts: 382
Thanks: 0
Thanked 10 Times in 10 Posts
Did you try ?
More example sending mail using attachment. Works fine with every mail clients. If not, problem is the client, not the environment.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Enterprise Unix Roundup: The Ghost of Unix Future - Server Watch Linux Bot UNIX and Linux RSS News 0 12-19-2007 11:20 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 05:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 06:57 AM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 12:59 PM



All times are GMT -4. The time now is 07:35 AM.