![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need docs. | rimser9 | Shell Programming and Scripting | 2 | 03-11-2008 09:56 AM |
| Dynamic update loop query on Sybase database | Alaeddin | Shell Programming and Scripting | 10 | 12-13-2007 06:26 AM |
| I wanted to update a script, more dynamic (just say no to hard coding)... | mr_manny | Shell Programming and Scripting | 2 | 03-14-2006 01:03 PM |
| need HP-UX docs | livemyway | HP-UX | 4 | 12-03-2005 08:38 AM |
| Some command line docs | deepaksachdeva | AIX | 1 | 08-29-2005 02:31 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
dynamic update of docs
hi,
i have some files which r link to the directory and to refer these files there is a html link on my web page At the moment there are only 2 active links. I created a soft link to the original source at very first time, the owner of these documents can change the content and update anytime after that . As long as they don't change the file name, the updated info will reflect immediately on the web. my problem is : i would like to create a dymamic update from original source without creating the soft link at the first time, which means everytime the document owner check in their files in the following directory, it immediately created an active link on the web. Eventually all the cell names that I already created on the html table will be active when the owner checkin their .doc files in the directory structure below. plz help |
|
||||
|
sushil_d10,
This sounds like an DHTML thing you want to do. I think it would be cleaner then writing scripts. But if you want to continue with scripts; You need to creat a script that would be ran from the crontab. Something like this: #!/bin/sh # if [[ -f /tmp/list_file ]] then rm -rf /tmp/list_file fi for user in `cat list_user` do cd ~$user/directory/ for files in `ls *.doc` do if [[! -f <location of files to share o the web>/$files ]] then ln -s $files <location of the files web>$files echo <location of the files /$files >>/tmp/list_file fi done done Then you would need script that will read the .tmp/list_file and populate you web page with sed and awk. i have not tested this script. I hope this would help. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|