Sorry, the bottom half didn't format correctly. #!/bin/sh /opt/fox/bin/tools/omset -b T 20_DEAERATOR:RO_LADDER.IFL_19 sleep 5 /opt/fox/bin/tools/omset -b F 20_DEAERATOR:RO_LADDER.IFL_19 -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Hyde, James Sent: Monday, April 19, 2010 12:23 PM To: foxboro@xxxxxxxxxxxxx Subject: Re: [foxboro] Windows Server 2K3 script problems **REDUX** I use the Windows scheduler as well to run a command file like so: Your_file.cmd call %NCDIR%\bin\ncenv.cmd d: cd D:\opt\scripts %NCDIR%\mksnt\sh.exe Your_file.sh Exit Your_file.sh could be something like this: Your_file.sh #!/bin/sh /opt/fox/bin/tools/omset -b T 20_DEAERATOR:RO_LADDER.IFL_19 sleep 5 /opt/fox/bin/tools/omset -b F 20_DEAERATOR:RO_LADDER.IFL_19 -James -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Terry Doucet Sent: Friday, April 16, 2010 6:07 PM To: foxboro@xxxxxxxxxxxxx Subject: Re: [foxboro] Windows Server 2K3 script problems **REDUX** CRON I was not able to get scheduled tasks to work well on 70 series with cron. I always used the Windows scheduler and that seemed to work well. I also remember that on one of the Windows (might have been XP), I had to set the user to Administrator rather than fox so that I did not get a DOS cmd window on the main CRT each time the program executed. As with the Unix world, I had to ensure every command and file reference had a path defined in the program to ensure it ran correctly. We defined some scripts to do daily collection of data for an off platform computer. The data collection always included the date and time for easy verification that the task was running. Terry _________________________________________________________________ Hotmail & Messenger are available on your phone. Try now. http://go.microsoft.com/?linkid-24461 _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave This message and any attachments is intended for the named addressee(s) only and may contain information that is privileged and/or confidential. If you receive this message in error, please delete it and immediately notify the sender. Any copying, dissemination or disclosure, either whole or partial, by a person who is not the named addressee is prohibited. We use virus scanning software but disclaim any liability for viruses or other devices which remain in this message or any attachments. ***************** Ce message, ainsi que toute piece jointe, est exclusivement adresse au(x) destinataire(s) nomme(s) et peut contenir des informations confidentielles. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'emetteur. Toute copie, transmission ou divulgation, integrale ou partielle, par une personne qui n'est pas nommee comme destinataire est interdite. Nous utilisons un logiciel anti-virus mais nous denions toute responsabilite au cas ou des virus, ou tout autre procede, seraient contenus dans ce message ou toute piece jointe. _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave This message and any attachments is intended for the named addressee(s) only and may contain information that is privileged and/or confidential. If you receive this message in error, please delete it and immediately notify the sender. Any copying, dissemination or disclosure, either whole or partial, by a person who is not the named addressee is prohibited. We use virus scanning software but disclaim any liability for viruses or other devices which remain in this message or any attachments. ***************** Ce message, ainsi que toute piece jointe, est exclusivement adresse au(x) destinataire(s) nomme(s) et peut contenir des informations confidentielles. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'emetteur. Toute copie, transmission ou divulgation, integrale ou partielle, par une personne qui n'est pas nommee comme destinataire est interdite. Nous utilisons un logiciel anti-virus mais nous denions toute responsabilite au cas ou des virus, ou tout autre procede, seraient contenus dans ce message ou toute piece jointe. _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave