FTP as a link in email


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting FTP as a link in email
# 1  
Old 06-26-2014
FTP as a link in email

Hi,

I have to place the files under FTP server and when the files were placed a notification email has to be sent to the user outlook box with FTP link.

How can I make a link to FTP and send it via email . Please help.
# 2  
Old 06-26-2014
Welcome Harimalyala,

I'm hoping you have read the forum rules and suggestions on how to get good answers first.

I have a few questions to start with:-
  • What have you tried so far?
  • What output/errors are you getting?
  • What OS and version are you using?
  • What shell and/or tools do you prefer?
  • Is this trying to trigger an email when the file arrives automatically?
  • Can you send a plain e-mail already?
Most importantly, What have you tried so far?

Writing a link into the email will depend on the email client you are sending to, so that would be good to know too.



Robin
# 3  
Old 06-27-2014
yes i'm is trying to trigger an email when the files arrives automatically.

Currently I'm giving the below . This is working and I just wanted to have a link also to be sent in this email pointing to the FTP where files will be placed.

uuencode Files Files | mailx -m -s "FILES" X@a.com
# 4  
Old 06-27-2014
Well, where will the files be located?
# 5  
Old 06-28-2014
How about just adding a line like ftp://host.domain.com/tmp into the mail's text?
# 6  
Old 06-30-2014
Files will be placed under FTP location/ some directory.

---------- Post updated at 12:28 AM ---------- Previous update was at 12:16 AM ----------

link to the files on the directory under FTP server

For example as below.. when files are available in temp folder..then these files will be placed under ftp/ax directory. once files are availble here a mail as below will be sent and also this mail should have a link to the directory under FTP.

if [ -f /temp/* ]
then
uuencode Files Files | mailx -m -s "FILES" X@a.com
ftp abc.com
user abc pwd
cd ax
# 7  
Old 07-02-2014
Can any one help me on this..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Users to submit email for ftp creation

hi all, created a bash script to create an ftp account, its here - #!/bin/bash dir=/mnt/sftp group=sftp_users echo "Enter UserName:" read user if id $user ; then echo "$user already exists as you can see above, please re-run the script" exit ... (6 Replies)
Discussion started by: robertkwild
6 Replies

2. Shell Programming and Scripting

Script to FTP,clean up and email

Hi i need a unix script to do the following tasks. My folder structure is /home/MSTR/test and will have the following folder within it Cache Lookup Source Target 1. On the Source & Target folder i have to take a copy of files older than 5 days and move(FTP) it into local machines C:\Backup... (1 Reply)
Discussion started by: Codesearcher
1 Replies

3. Shell Programming and Scripting

ftp, archive, email and delete from shell script

Hello, I found the forum’s information very helpful and informative. I am relatively new to UNIX programming. I am researching how to write a UNIX shell script to ftp all files from specific host folder to a client server. Also need to archive all transferred files, send a message (email) if any... (4 Replies)
Discussion started by: Lenora2009
4 Replies

4. Shell Programming and Scripting

FTP, Email notication Doubts

Hi we ar trying to automate a couple of things using UNIX.. need help with the commands and scripts for the same... 1. how to FTP a file from an UNIX server to a Shared network location. 2. we have CSV file in UNIX, with this file we have to create a pivot table and post it to a shared... (0 Replies)
Discussion started by: depakjan
0 Replies

5. IP Networking

Automate FTP process and autorestart on link failure

Hi Guys, i have this lil challenge; i am to implement an automated script that searches/scans a directory for files then picks and sends this files to a very remote server via an ftp link. the challenge here is that the ftp link fails due to netwrk issues maybe; i therefore need to develop... (5 Replies)
Discussion started by: sdcoms
5 Replies

6. UNIX for Dummies Questions & Answers

email sarg URL report link

Hello, sarg -l access.log -e johndoe@emailaddress.com will send text formated activity to John Doe. sarg -l access.log -u johndoe will generate user activity of John Doe from access.log file. Question: Is there way to send sarg generated URL Link for detail drill down to the user via... (0 Replies)
Discussion started by: paulds
0 Replies

7. Forum Support Area for Unregistered Users & Account Problems

I Recieved An Email Without An Activation Link

I Didn't get the activation link with the e-mail it Said: Dear JJRadio, Thank you for registering for the The UNIX Forums forums. Before we can activate your account one last step must be taken to complete your registration. Please note - you must complete this last step to become a... (1 Reply)
Discussion started by: JJRadio
1 Replies

8. UNIX for Advanced & Expert Users

Ftp Link problem

I am using ftp services at my unix box and accessing it from windows. when i am giving the url in the browser, ftp://neeraj:neeraj@10.1.3.116/cat01/Ne.txt it is giving me ISA Server: extended error message : 200 Type set to I. 200 PORT command successful. 550 /cat01/Ne.txt: No such... (0 Replies)
Discussion started by: NeerajYadav
0 Replies

9. UNIX for Dummies Questions & Answers

Sending email w/ ftp log as attachment

Can this be done? Code samples welcome and encouraged. (2 Replies)
Discussion started by: idesaj
2 Replies
Login or Register to Ask a Question