Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
server name
lucifer
could anybody tell me how to get the server name in the work flow?
could anybody please send me a submit.cfg file ( i have lost mine)
version TS 5.0.1
windows 2000 Server
Find more posts tagged with
Comments
Adam Stoller
For a Windows server - I would think you could do something like:
< template_script>< ![CDATA[
my $host = $ENV{COMPUTERNAME};
]]>< /template_script>
For the submit.cfg - they tend to be site-specific, I suggest you look at the TeamSite Administration Manual which includes an example.
--fish
(Interwoven, Curriculum Development)
Migrateduser
This is not really a great way to do it, as it only grabs the host portion of the name, and you might need the fully qualified domain name of the box. The most portable (TeamSite-wise anyway) method of doing that is to use the hostname() method from the TeamSite::Config() module.
Cheers
Rob
rob@bagpipe.com
search-lotus.jpg
Adam Stoller
Good call !!
I use getiwhome() and getiwmount() all the time - and never even thought about looking in TeamSite::Config for other methods.
I guess I'm done for the day - as I've now learned something new :-)
--fish
(Interwoven, Curriculum Development)
akshathp
How about using something like this:
my $iwhome = TeamSite::Config::iwgethome();
sub config {
my ($sect, $entr, $def) =
@_
;
my $value = `$iwhome/bin/iwconfig $sect $entr`;
if (!defined $value) {
return $def;
} else {
chomp $value;
return ($value eq '') ? $def : $value;
}
}
my $host = config('iwwebd', 'host');
$url = "
http://$host
";
Hope this helps.
Akshat Pramod Sharma
Interwoven Inc.