Script that automatically generates HTML


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Script that automatically generates HTML
# 1  
Old 11-26-2013
Script that automatically generates HTML

hi I have a script with HTML code and am currently generating the html page everytime using genWebsite.sh > startPage.html

Is it possible to have a loop at the begining of the script to run this command every minute so an updated HTML page is displayed or could someone suggest an alternative method?

thanks
# 2  
Old 11-26-2013
You can create a cron job to run this script every minute.
Do
Code:
crontab -e

and make the below entry in the file:
Code:
* * * * * /path/to/script > /path/to/html/file

Save and exit the file.

This will create a cron job for the script
# 3  
Old 11-26-2013
sorted i had to change the directory in one of my files

Last edited by scriptnewbie; 11-27-2013 at 06:34 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script that generates another shell script

If there's a file called example.txt with contents: Foo Bar Baz Goo then I need to generate a shell script that has commands to reconstruct example.txt on another machine: echo "Foo" >> example.txt echo "Bar" >> example.txt echo "Baz" >> example.txt echo... (5 Replies)
Discussion started by: Yongfeng
5 Replies

2. Solaris

How to find out the script which generates the file in solaris/unix ?

Hi A file is generated/created/modified during installation (or) execution of a script. vice versa..How to find out which script is responsible for creating/modifying a file. Example:- ....An existing file ( hosts.ulcm ), this file is created or modified by running a script ( may be... (1 Reply)
Discussion started by: frintocf
1 Replies

3. UNIX for Advanced & Expert Users

A Program Which Generates a Script Which Kills It

I have a C++ program, running on Fedora Linux, which has to be able to update itself to a new version, which it can obtain from a server. The way I do this is to have it create a shell script which kills it (the parent process), uninstalls it, downloads the new version (actually it does this... (1 Reply)
Discussion started by: BrandonShw
1 Replies

4. Ubuntu

Fetch html page convert to pdf automatically via cmd or other means, shortcut

Hi, Im used to compiling when i stumble upon some interesting topics in the net and convert it into pdf files unto my HD for future reference's. I using the chrome print to pdf procedure since firefox html to pdf don't work correctly. I just wonder in someone do same thing and did it in a easy... (3 Replies)
Discussion started by: jao_madn
3 Replies

5. Shell Programming and Scripting

perl script for generates a report for backup times

Hi all, we do have daily oracle database backups and i need to generate report of each database start point and end point we are using netapp snapshot(filer level) for backups. all backups logs will be come in one directory /u01/app/oracle/backup/hostname/log/* here... (7 Replies)
Discussion started by: prakashdba2010
7 Replies

6. Shell Programming and Scripting

script that will automatically extract

how do i write a script that will automatically extract rar files after the download in a particular folder? can you give me an idea please? :D or is there an existing script for this? (3 Replies)
Discussion started by: garfish
3 Replies

7. Shell Programming and Scripting

How to run a script automatically

Hi All, How can i run a script every week automatically. Thanks & regards, Sam (5 Replies)
Discussion started by: sam25
5 Replies

8. UNIX for Advanced & Expert Users

What one line unix talk combo generates the following....

What one line unix talk combo would generate 95% cpu load? Im talking like something below (1 Reply)
Discussion started by: frequency8
1 Replies

9. UNIX for Dummies Questions & Answers

how to run a Script automatically

How to make a script run automatically using a cron?? i do not know abt cron...... if i have simple.sh file and i need this to run everyday at a particular time what needs to be done thanks in advance (4 Replies)
Discussion started by: hamsa
4 Replies

10. UNIX for Dummies Questions & Answers

How to run a script automatically ?????

Hi All, How to run a script automatically using cronjob everyday from Monday to Friday 9A.M to 5P.M at an interval of ONE HOUR.I want the complete syntax means how to put in the cron job and there after. URGENTLY NEED HELP THANKS IN ADVANCE CHEERS Arunava (7 Replies)
Discussion started by: arunava_maity
7 Replies
Login or Register to Ask a Question