简体   繁体   中英

Run perl script on amazon ec2

I need to run a Perl Script on my EC2 instance. This script will download files from an FTP client and then upload the data to the RDS database on the EC2 instance. The script needs to run everyday at a specific time. For now, i have the script on the local machine and it does work. But is there a way to upload the script itself on ec2 so the script will run there and my PC need not be running.

Yes you can do this. Just run the script as a cron job and give all the environment dependencies to run the script on ec2 instance. Running the job on an ec2 instance will not be different from running your job on the local box if the environment is setup properly.

If you are using windows, then you can use Bitvise Tunnelier to upload your script to ec2 instance. After this, you can set your script in cron job to run everyday.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM