Hi,
Problem:
am trying to show the directory and file paths from workarea thru ipl when an cgi-callout is made. Script is just using openDir, readDir to get the files list.
But sometimes script is unable to read some directroies intermittently. After few seconds/minutes, script can able to show the contents of same directory.
Following are script bits:
Team site environment = (Teamsite 5.5.2 sp 4, solaris)
function init() {
IWEventRegistry.addItemHandler("/Navigation/Path", "onCallout", launchCallout);
}
function launchCallout(item) {
....
var url = "http://"+server+":61000/iw-bin/iw_cgi_wrapper.cgi/Browser.ipl?current_directory=" + new_path;
childW = window.open(url, "childW", "width=650,height=600,resizable=yes,toolbar=no,scrollbars=yes");
...
}
ipl code
....
my $status = opendir(DIR, $current_directory);
my
@files = readdir(DIR);
foreach my $file (
@files) {
chomp($file);
my $fileName = $current_directory . '/' . $file;
if(-d $fileName) {
#show directory Path with directory image
}elsif(-f $fileName) {
#show file Path with file image
}
}
permissions on ipl (thru solaris console)
-rwxrwxrwx 1 iwadmin other 7067 Feb 11 15:35 Browser.ipl
status of a directory when failure occurs in script:
drwxrwx--- 5 iwadmin iwgrop 512 Feb 4 2004 archive
status of same directory after few seconds
drwxrwx--- 5 iwadmin iwadmin 512 Feb 4 2004 archive
Above permissions shows that there is a change in group but I am pretty much sure that no one working on it.
can anyone help why is this intermittent behaviour occuring??