Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a crontab entry which runs ftp to a destination ip address. However there is no script or source or destination directory details. Can anyone please help me with the name and location of the file where these details will be present?
I have a crontab entry which runs ftp to a destination ip address. However there is no script or source or destination directory details. Can anyone please help me with the name and location of the file where these details will be present?
No, and there is absolutely NO WAY anyone, anywhere, can answer this question. How is anyone going to know the source, destination, IP address, or ANYTHING about two random FTP servers?
You say there is no script...then how, exactly, does the FTP job run? What does that crontab entry consist of? Either the FTP details are in the crontab line, or they're in a script. No where else they can really be.
Welcome to this site, but someone like you should use Google.com instead.
Sorry, I coulda"t figure out how to copy&paste with M$Win10 tablet, but
Google shows examples of $variables in script, and .netrc
Does your ftp support .netrc? We hope you succeed with the needful.
I have a crontab entry which runs ftp to a destination ip address. However there is no script or source or destination directory details. Can anyone please help me with the name and location of the file where these details will be present?
Hi Prashanth Dheram and welcome to LQ.
Perhaps you should post your crontab entry and refer to where you see the FTP. To help enhance your question, consider reviewing the LQ Site FAQ
Other members please remember this is a new user, while it is true they have not provided enough information, our policy is to refer them to any of the many helpful links. For instance those in LQ signatures, if they happen to contain helpful links. Comments about non-related technology are not on topic. Abbreviations or text speak are discouraged in LQ because they can cause misunderstandings.
If there are any concerns or questions about this guidance, please contact myself or the moderators directly.
You can put the FTP command in a crontab, but you haven't much chance of controlling it unless you have a script to tell it what to do and where to put data.
Why not write a script and get your crontab to run the script directly?
I have a crontab entry which runs ftp to a destination ip address. However there is no script or source or destination directory details. Can anyone please help me with the name and location of the file where these details will be present?
Post your crontab entries here along with output of
Quote:
ls -la /path/to/script/location
May be you are looking to wrong crontab user file?
No, and there is absolutely NO WAY anyone, anywhere, can answer this question. How is anyone going to know the source, destination, IP address, or ANYTHING about two random FTP servers?
You say there is no script...then how, exactly, does the FTP job run? What does that crontab entry consist of? Either the FTP details are in the crontab line, or they're in a script. No where else they can really be.
I have found the answer to my question. The ftp configuration is present in .netrc file. I just needed to know how can a ftp job be implemented without a script since there was no script in my system. I just found a crontab entry with ftp to the destination ip.
Last edited by Prashanth Dheram; 11-22-2017 at 06:50 AM.
Welcome to this site, but someone like you should use Google.com instead.
Sorry, I coulda"t figure out how to copy&paste with M$Win10 tablet, but
Google shows examples of $variables in script, and .netrc
Does your ftp support .netrc? We hope you succeed with the needful.
After doing a lot of research on google, I have found some details regarding .netrc file and it worked for me. Thanks!!
You can put the FTP command in a crontab, but you haven't much chance of controlling it unless you have a script to tell it what to do and where to put data.
Why not write a script and get your crontab to run the script directly?
ftp in crontab can be controlled by .netrc file in the user's home directory. I needed this information because I had to debug en existing ftp job and I didn't have the details regarding source and destination. I could only see in crontab that there is an ftp to destination ip.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.