Depends on the client OS. If some DOS/Windows based os, issue something like this as the first line of the script...
set > C:\EnvVars.txt
and then login to review what vars you have available to you. With the DOS client, no server related vars are set / available. Win2K OTOH has several.
-- Michael Lueck Lueck Data Systems
Remove the upper case letters NOSPAM to contact me directly.
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba