Results 1 to 6 of 6
Hi all
i want to install a file from a web site in a specific time
i use Fedora Core 1
Can anyone tell me how to do that...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-22-2004 #1Just Joined!
- Join Date
- Apr 2004
- Location
- egypt
- Posts
- 8
install from a http site in specific time
Hi all
i want to install a file from a web site in a specific time
i use Fedora Core 1
Can anyone tell me how to do that
- 06-22-2004 #2
You need something like the up2date program ?
Write a bash script that checks if the program is available on the website using wget and awk.
Then wget to download it, and use rpm -Uvh *.rpm to upgrade the installation if it's and RPM you are downloading.
To schedule it, use cron.
---[ MS09-99896 - Vulnerability in All MS Windows OS ; Using Windows Could Allow Remote Code Execution. ]---
Hardware: Asus P4P800, 1GB, P4-3Ghz, Asus V9950, Maxtor ATA HD\'s, 3Com GBit lan, Audigy ZS Plat.
- 06-22-2004 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
What do you mean by "in a specific time"? Do you mean to schedule the installation for later?
Also, what kind of file is it? An RPM?
- 06-23-2004 #4Just Joined!
- Join Date
- Apr 2004
- Location
- egypt
- Posts
- 8
i men for example i want to begin download a movie file or iso in 12 pm , and save it ander folder named download under my home directory
- 06-23-2004 #5Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Oh, I see. That's really simple - Just use the 'at' program.
'at' allows you to input some shell commands to be run at a particular time. Run at with the time to run them at, like "at 00:00" for the upcoming midnight. Then input the commands, and end it with Ctrl+D. Something like this, that is:
Code:at 00:00 cd ~/download wget http://www.server.tld/path/to/movie.avi (Press Ctrl+D)
- 06-24-2004 #6Linux Newbie
- Join Date
- May 2004
- Location
- Boston, MA
- Posts
- 246
You can also do "at midnight", "at noon", and even "at teatime" interestingly enough. But remember, at executes its commands in /bin/sh, not /bin/bash, so if you need it to perform a bash function, it's probably best to write a bash script and tell at to run that.
Hey, I made it to groupie! Cha-ching!


Reply With Quote
