Tcl source command directory



I am trying to use the source command, but source only looks in the
directory where I am calling the script from, i.e. the current working
directory.

For example, if my script is in /usr/local/bin/ and if i call the
script with an absolute path from my home directory /home/user/, source
only looks for files in /home/user/.

How can I make source look in the same directory where the script is
located? I need to be able to use this as I put the script on multiple
machines and it is not always in the same directory.

Thank you for your help!

.



Relevant Pages

  • decnet for linux problem
    ... with telnet and ftp also ... and set host to the PC from the VS. ... phone utility says "no one is calling you" when I answer -- while ... script contains ...
    (comp.os.vms)
  • Re: Access File Share from ASP.NET using Unmanaged Code
    ... >> calling CreateProcessWithTokenW instead. ... >> Joe K. ... >> share either by unc path or trying to map a drive as part of the script. ... >> access a network resource using the page I have created it simply ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Access File Share from ASP.NET using Unmanaged Code
    ... How are you calling the script files in this app? ... FTP etc. but the user cannot access a network ... share either by unc path or trying to map a drive as part of the script. ... > Alternatively is their a way to run a defined task from the scheduler. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Absolute pathnames to commands in shell scripts
    ... Define all invoked commands at the top ... initially be calling the correct versions and it's 3 years down the road ... script when you didn't change the script! ... Spell out the full pathname ...
    (comp.unix.shell)
  • Nested scripts fails to execute
    ... we are using a logon script lets say a.bat. ... This starting scripts is calling ... d.bat is calling the last script, ... It works on XP machines well but even the file exists on W2k Prof. ...
    (microsoft.public.scripting.vbscript)