#!/p01/app/iw/tsite/iw-home/iw-perl/bin/iwperl -wuse strict;use TeamSite::Config;my $iwhome = TeamSite::Config::iwgethome();my $area = $ARGV[4];my $file = $ARGV[5];if ( ($area !~ /\/default\/main\/Intranet\/HighWire\/Sites\/eClips/) && ($area !~ /\/default\/main\/Intranet\/HighWire\/WebHelp/) && ($area !~ /\/default\/main\/Intranet\/HighWire\/Sites\/Graduates/) || ($file =~ /meta-prod\.xml/) || ($file =~ /meta\.xml/) || ($file =~ /categories\.xml/) ) { die }my $fileVpath = $area . $file;my $unlock_cmd = "$iwhome/bin/iwunlock $fileVpath";my $rc = system("$unlock_cmd");
#!/p01/app/iw/tsite/iw-home/iw-perl/bin/iwperluse strict;use warnings; # assumes TS 6.5+use TeamSite::Config;my $iwhome = TeamSite::Config::iwgethome(); # *my $area = $ARGV[4];my $file = $ARGV[5];if ( ($area !~ m|/default/main/Intranet/HighWire/Sites/eClips|) && ($area !~ m|/default/main/Intranet/HighWire/WebHelp|) && ($area !~ m|/default/main/Intranet/HighWire/Sites/Graduates|) || ($file =~ /meta-prod\.xml/) || ($file =~ /meta\.xml/) || ($file =~ /categories\.xml/) ) { die }my $fileVpath = $area . $file;my $unlock_cmd = "$iwhome/bin/iwunlock $fileVpath";my $rc = system("$unlock_cmd");
eq
=~
thanks a punch for your replies . that is a very useful script but we are not allowed to use iwat commands at all here as i mentioned in my post.
2- use iwatlock.ipl command but i dont think that our admin will like or allow it using this command.
thanks a punch for your replies . that is a very useful script but we are not allowed to use iwat commands at all here as i mentioned in my post.i actually solved this problem using a workflow. by the way nipper i know this might be an easy problem , but i just needed other guys thoughts , so don't eat a lot of hot sauce it is not good for your health. lolthanks again
You misunderstood my comment, I did not say that because it was an easy fix. Doing this is a bad idea (using iwat or a callserver). Doing it within a workflow is perfectly acceptable and using product the way it was designed. However, bypassing locks completely (which is what a callserver or iwat would accomplish) is a bad idea.
However, bypassing locks completely (which is what a callserver or iwat would accomplish) is a bad idea.