The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-04-2005
sushil_d10 sushil_d10 is offline
Registered User
  
 

Join Date: May 2005
Posts: 3
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
  #2 (permalink)  
Old 05-06-2005
larryase larryase is offline
Registered User
  
 

Join Date: Nov 2004
Posts: 69
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0