Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Automatic FTP upon reboot

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
SuperiorCommander
Posts: 3
Joined: 2015-03-19 20:40

Automatic FTP upon reboot

#1 Post by SuperiorCommander »

Hello, I am new to Debian and I was wondering if there is a way to automatically transfer files between one machine to another upon Debian starting (or when a script is executed). Would it be also possible to check a database for a value and if the value exists then files can be transferred automatically (just like reboot). Many thanks!

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Automatic FTP upon reboot

#2 Post by dasein »

Sure. Write a script to do <whatever> and then run it at startup. You can even pick between running at system startup and running at login for a particular user.

To that end, try run script startup debian as a Web search.

SuperiorCommander
Posts: 3
Joined: 2015-03-19 20:40

Re: Automatic FTP upon reboot

#3 Post by SuperiorCommander »

Thanks for your reply!
Could you provide me with any pointers for creating a FTP script?
Thanks!

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Automatic FTP upon reboot

#4 Post by dasein »

A script is nothing (much) more than a set of commands stored for later (re)use. Google linux scripting tutorial for 1.5 million pages that already give all the pointers anyone could possibly need.

Post Reply