[THIN] Re: RE : stupid question ... AT command

  • From: "Paul Bleimeyer" <paulb@xxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Tue, 19 Nov 2002 13:16:04 -0600

Since you are calling this from a batch/cmd environment,
you should need to add two sets of percents as the first
ones will be stripped off as part of the environment.

Example: nbtstat -c>%%computername%%.rtf

Give it a try.

Also try running your patch file with echo on and let yourself see what the
batch file is doing. Adding a pause statement every so often is an effect
way to debug these as well. Many times when constructing a large script or
batch file, I will dump certain things to a file that I expect to see along
the way and then have it pause. I can then tail the debug file and see what
got dumped into the log file along the way. Just a suggestion.

Regards,

Paul

> -----Original Message-----
> From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On
> Behalf Of Nicolas Ouellet
> Sent: Tuesday, November 19, 2002 1:05 PM
> To: thin@xxxxxxxxxxxxx
> Subject: [THIN] Re: RE : stupid question ... AT command
>
>
> What I try to do is to send a new lmhost file on the servers
> and refresh it's cache.
> I simple as it is. make a backup copy. copy the file. creat
> an rtf as log.
>
> The tasked is started but finishes with an error code 1
> althought when I run the cmd file manually it goes throught
> no problem!
>
>
> REM @ECHO OFF
> rem ************************ GO_HOSTS ***********************
> rem
> rem This is a batch that run on each server.
> rem Its function is to update the LMHOSTS file.
> rem It will make a backup of the existing lmhosts file
> rem It will create a file hostsinf.txt whose purpose is to
> rem validate when the lmhosts was last run.
> rem
> rem *********************************************************
>
> if exist NEWLMH.TXT GOTO safe1
> if not exist NEWLMH.TXT GOTO failed
>
> :safe1
> copy lmhosts.old1 lmhosts.old2 /y
> copy lmhosts.old lmhosts.old1 /y
> copy lmhosts lmhosts.old /y
> copy newlmh.txt lmhosts
> del newlmh.txt
>
> nbtstat -R
> nbtstat -c>%computername%.rtf
> goto end
>
> :failed
> echo there was no NEWLMH.TXT file on this server
>
> New LMHOSTS failed to be applied!>%computername%_failed.rtf
> goto end
>
> :end
>
>
>
>
>
>
>
>
>
>
> >>> Goudreault.Louis@xxxxxxxxxxx 11/19/02 12:17PM >>>
> You're using a mapped drive as the parameter.
>
> If the user is not currently logged on at the moment the
> scheduled task
> start,
> The system won't find the H: drive.
>
> Try using UNC paths instead.
>
> at 10:10 \\server\share\file.cmd
>
> I always use UNC paths in my scheduled task and haven't had
> any problems.
>
> ---------------------------------------------------
> Louis Goudreault
> Tech Support
> Software Development Group
> Hydro-Quebec
> E-Mail: goudreault.louis@xxxxxxxxxxx
> ---------------------------------------------------
>
> "For even the very wise cannot see all ends."
> Gandalf,
> Fellowship of the Ring
>
>
>
>
> -----Message d'origine-----
> De : Nicolas Ouellet [mailto:nicolas_ouellet@xxxxxxxxxxxxxxx]
> Envoyé : 19 novembre 2002 11:41
> À : thin@xxxxxxxxxxxxx
> Objet : [THIN] stupid question ... AT command
>
>
> Hiya!
>
> I trying to schedule a task through AT in win2k but with no success. I
> created a batchfile (.cmd) but when using AT it doesn't run.
>
> here's what I got
> - system user have all the rights.
> - scheduler is up and running. and works!
>
> I tried those line with no success. ( : ( )
> 1- at 10:10 cmd /k "h:\services\at\mybatch.cmd"
> 2- at 10:10 cmd /c "h:\services\at\mybatch.cmd"
> 3- at 10:10 h:\services\at\mybatch.cmd
> 4- at 10:10 /interactive cmd.exe /c
>
> Once the time is up the AT command just disapear with no message.
>
> Can anyone help me?
>
> Nick
>
> ***********************************************
> This Weeks Sponsor: Wyse Technologies
> Get a free whitepaper on how to secure
> your corporate data from Wyse. Click Below.
> http://thethin.net/wyse.cfm
> ***********************************************
> For Archives, to Unsubscribe, Subscribe or
> set Digest or Vacation mode use the below link.
>
> http://thethin.net/citrixlist.cfm
>
> ***********************************************
> This Weeks Sponsor: Wyse Technologies
> Get a free whitepaper on how to secure
> your corporate data from Wyse. Click Below.
> http://thethin.net/wyse.cfm
> ***********************************************
> For Archives, to Unsubscribe, Subscribe or
> set Digest or Vacation mode use the below link.
>
> http://thethin.net/citrixlist.cfm
>
> ***********************************************
> This Weeks Sponsor: Wyse Technologies
> Get a free whitepaper on how to secure
> your corporate data from Wyse. Click Below.
> http://thethin.net/wyse.cfm
> ***********************************************
> For Archives, to Unsubscribe, Subscribe or
> set Digest or Vacation mode use the below link.
>
> http://thethin.net/citrixlist.cfm
>

*********************************************** 
This Weeks Sponsor: Wyse Technologies
Get a free whitepaper on how to secure
your corporate data from Wyse. Click Below. 
http://thethin.net/wyse.cfm 
*********************************************** 
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

Other related posts: