Re: Help with Run Process - Deleting files on a server
Hi Gavin, We have noticed that running what should be simple commands doesn't seem to work as well in Windows as it does in UNIX. We have had better luck writtning little batch files in most cases. Also we were battling an issue a week ago where trying to run a batch file in a set fields RP would execute differently then from just a Run Process action. We could see that the batch was running in both instances but the results would be different depending on how you call the batch (there are no parameters needed for the batch, it just needs to be called). Are you using a set fields or run process action? Maybe try it the other way around. Jason On 8/29/08, Coleman, Gavin [EMAIL PROTECTED] wrote: Hi Carey - thanks for the response. Yes, completely forgot about the difference between Unix and Windows. My fault! I've replace the forward slashes with backslashes, but I still get the same result: 0: Process FLTR TID: 003792 RPC ID: 003721 Queue: Fast Client-RPC: 390620USER: GCOLEMAN DEL C:\remedy\install\itspdev\api\bin\logs\Saturday\*.log FLTR TID: 003792 RPC ID: 003721 Queue: Fast Client-RPC: 390620USER: GCOLEMAN Error while performing filter action Has anybody got any other ideas? For information, we are running ARS 6.3 patch 22 on an Oracle Database. Thanks, Gavin Coleman Senior Analyst/Programmer Computacenter (UK) Ltd Services Solutions Hatfield Avenue Hatfield, Hertfordshire, AL10 9TW, United Kingdom T: +44 (0) 1707 631662 E: [EMAIL PROTECTED] W: www.computacenter.com -Original Message- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black Sent: 29 August 2008 12:17 To: arslist@ARSLIST.ORG Subject: Re: Help with Run Process - Deleting files on a server Gavin, You have spent to much time in Un*x land This works C:\Documents and Settings\testdel C:\Documents and Settings\test\test2\*.txt This does not work... C:\Documents and Settings\testdel C:/Documents and Settings/test/test2/*.txt The system cannot find the path specified. Swap your forward slashes for back slashes... and you may even need to protect them from the windows shell too. HTH. -- Carey Matthew Black Remedy Skilled Professional (RSP) ARS = Action Request System(Remedy) Love, then teach Solution = People + Process + Tools Fast, Accurate, Cheap Pick two. On Fri, Aug 29, 2008 at 6:18 AM, Coleman, Gavin [EMAIL PROTECTED] wrote: ** Hi List - I wonder if anyone can help me? I have a Run Process action running in a Filter that is trying to delete some files on the Windows 2003 server. My syntax for this is: Del $RP API Folder$logs/$z1D_RP_Delete_Logs_Day$/*.log Values for these variables are $RP API Folder$ = C:/remedy/install/itspdev/api/bin/ $z1D_RP_Delete_Logs_Day$ = Saturday Looking in the log files I can see the following happening: 0: Process FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN Error while performing filter action I have tried the Run Process with quotes and without and nothing works. I get another error in the arerror.log which shows the following: 390620 : Failure while trying to run the filter/escalation process (ARERR 24) Fri Aug 29 10:57:42 2008 No error : DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log Can anybody point out where I'm going wrong? Or failing that suggest a way to delete some files on the server based on variables? Thanks for your help! Gavin Coleman Senior Analyst/Programmer Computacenter (UK) Ltd Services Solutions Hatfield Avenue Hatfield, Hertfordshire, AL10 9TW, United Kingdom T: +44 (0) 1707 631662 E: [EMAIL PROTECTED] W: www.computacenter.com ** COMPUTACENTER PLC is registered in England and Wales with the registered number 03110569. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW COMPUTACENTER (UK) Limited is registered in England and Wales with the registered number 01584718. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW The contents of this email are intended for the named addressee only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive mail for the addressee) you may not copy or use it, or disclose it to anyone else. If you receive it in error please notify us immediately and then destroy it. Computacenter information
Re: Help with Run Process - Deleting files on a server
Hello I don't have a windows server to test this on, but one thing that might work would be to break this into two separate actions: 1) set a temporary field (lets call it $zTmpField$) to: Del $RP API Folder$logs/$z1D_RP_Delete_Logs_Day$/*.log 2) Run the process of $zTmpField$ Just a stab in the dark, but might be worth a try. Isabel -Original Message- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Coleman, Gavin Sent: 29 August 2008 11:19 To: arslist@ARSLIST.ORG Subject: Help with Run Process - Deleting files on a server ** Hi List - I wonder if anyone can help me? I have a Run Process action running in a Filter that is trying to delete some files on the Windows 2003 server. My syntax for this is: Del $RP API Folder$logs/$z1D_RP_Delete_Logs_Day$/*.log Values for these variables are $RP API Folder$ = C:/remedy/install/itspdev/api/bin/ $z1D_RP_Delete_Logs_Day$ = Saturday Looking in the log files I can see the following happening: 0: Process FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN Error while performing filter action I have tried the Run Process with quotes and without and nothing works. I get another error in the arerror.log which shows the following: 390620 : Failure while trying to run the filter/escalation process (ARERR 24) Fri Aug 29 10:57:42 2008 No error : DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log Can anybody point out where I'm going wrong? Or failing that suggest a way to delete some files on the server based on variables? Thanks for your help! Gavin Coleman Senior Analyst/Programmer Computacenter (UK) Ltd Services Solutions Hatfield Avenue Hatfield, Hertfordshire, AL10 9TW, United Kingdom T: +44 (0) 1707 631662 E: [EMAIL PROTECTED] W: www.computacenter.com ** COMPUTACENTER PLC is registered in England and Wales with the registered number 03110569. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW COMPUTACENTER (UK) Limited is registered in England and Wales with the registered number 01584718. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW The contents of this email are intended for the named addressee only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive mail for the addressee) you may not copy or use it, or disclose it to anyone else. If you receive it in error please notify us immediately and then destroy it. Computacenter information is available from: http://www.computacenter.com ** __Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are html___ ***Disclaimer This e-mail and any attachments are for the intended addressee(s) only and may contain confidential and/or privileged material. If you are not a named addressee, do not use, retain or disclose such information. This email is not guaranteed to be free from viruses and does not bind Access in any contract or obligation. SERVICE GLASGOW LLP trading as ACCESS Registered in Scotland. No: SO301705 Registered Office: 191 West George Street, Glasgow , G2 2LD ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are
Re: Help with Run Process - Deleting files on a server
Try it with the /q switch. Del $RP API Folder$logs/$z1D_RP_Delete_Logs_Day$/*.log /q _ From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Coleman, Gavin Sent: 29 August 2008 11:19 To: arslist@ARSLIST.ORG Subject: Help with Run Process - Deleting files on a server Hi List - I wonder if anyone can help me? I have a Run Process action running in a Filter that is trying to delete some files on the Windows 2003 server. My syntax for this is: Del $RP API Folder$logs/$z1D_RP_Delete_Logs_Day$/*.log Values for these variables are $RP API Folder$ = C:/remedy/install/itspdev/api/bin/ $z1D_RP_Delete_Logs_Day$ = Saturday Looking in the log files I can see the following happening: 0: Process FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN Error while performing filter action I have tried the Run Process with quotes and without and nothing works. I get another error in the arerror.log which shows the following: 390620 : Failure while trying to run the filter/escalation process (ARERR 24) Fri Aug 29 10:57:42 2008 No error : DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log Can anybody point out where I'm going wrong? Or failing that suggest a way to delete some files on the server based on variables? Thanks for your help! Gavin Coleman Senior Analyst/Programmer Computacenter (UK) Ltd Services Solutions Hatfield Avenue Hatfield, Hertfordshire, AL10 9TW, United Kingdom T: +44 (0) 1707 631662 E: [EMAIL PROTECTED] W: www.computacenter.com ** COMPUTACENTER PLC is registered in England and Wales with the registered number 03110569. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW COMPUTACENTER (UK) Limited is registered in England and Wales with the registered number 01584718. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW The contents of this email are intended for the named addressee only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive mail for the addressee) you may not copy or use it, or disclose it to anyone else. If you receive it in error please notify us immediately and then destroy it. Computacenter information is available from: http://www.computacenter.com ** __Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are html___ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are
Re: Help with Run Process - Deleting files on a server
Gavin, You have spent to much time in Un*x land This works C:\Documents and Settings\testdel C:\Documents and Settings\test\test2\*.txt This does not work... C:\Documents and Settings\testdel C:/Documents and Settings/test/test2/*.txt The system cannot find the path specified. Swap your forward slashes for back slashes... and you may even need to protect them from the windows shell too. HTH. -- Carey Matthew Black Remedy Skilled Professional (RSP) ARS = Action Request System(Remedy) Love, then teach Solution = People + Process + Tools Fast, Accurate, Cheap Pick two. On Fri, Aug 29, 2008 at 6:18 AM, Coleman, Gavin [EMAIL PROTECTED] wrote: ** Hi List – I wonder if anyone can help me? I have a Run Process action running in a Filter that is trying to delete some files on the Windows 2003 server. My syntax for this is: Del $RP API Folder$logs/$z1D_RP_Delete_Logs_Day$/*.log Values for these variables are $RP API Folder$ = C:/remedy/install/itspdev/api/bin/ $z1D_RP_Delete_Logs_Day$ = Saturday Looking in the log files I can see the following happening: 0: Process FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN Error while performing filter action I have tried the Run Process with quotes and without and nothing works. I get another error in the arerror.log which shows the following: 390620 : Failure while trying to run the filter/escalation process (ARERR 24) Fri Aug 29 10:57:42 2008 No error : DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log Can anybody point out where I'm going wrong? Or failing that suggest a way to delete some files on the server based on variables? Thanks for your help! Gavin Coleman Senior Analyst/Programmer Computacenter (UK) Ltd Services Solutions Hatfield Avenue Hatfield, Hertfordshire, AL10 9TW, United Kingdom T: +44 (0) 1707 631662 E: [EMAIL PROTECTED] W: www.computacenter.com ** COMPUTACENTER PLC is registered in England and Wales with the registered number 03110569. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW COMPUTACENTER (UK) Limited is registered in England and Wales with the registered number 01584718. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW The contents of this email are intended for the named addressee only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive mail for the addressee) you may not copy or use it, or disclose it to anyone else. If you receive it in error please notify us immediately and then destroy it. Computacenter information is available from: http://www.computacenter.com ** __Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are html___ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are
Re: Help with Run Process - Deleting files on a server
Hi Carey - thanks for the response. Yes, completely forgot about the difference between Unix and Windows. My fault! I've replace the forward slashes with backslashes, but I still get the same result: 0: Process FLTR TID: 003792 RPC ID: 003721 Queue: Fast Client-RPC: 390620USER: GCOLEMAN DEL C:\remedy\install\itspdev\api\bin\logs\Saturday\*.log FLTR TID: 003792 RPC ID: 003721 Queue: Fast Client-RPC: 390620USER: GCOLEMAN Error while performing filter action Has anybody got any other ideas? For information, we are running ARS 6.3 patch 22 on an Oracle Database. Thanks, Gavin Coleman Senior Analyst/Programmer Computacenter (UK) Ltd Services Solutions Hatfield Avenue Hatfield, Hertfordshire, AL10 9TW, United Kingdom T: +44 (0) 1707 631662 E: [EMAIL PROTECTED] W: www.computacenter.com -Original Message- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black Sent: 29 August 2008 12:17 To: arslist@ARSLIST.ORG Subject: Re: Help with Run Process - Deleting files on a server Gavin, You have spent to much time in Un*x land This works C:\Documents and Settings\testdel C:\Documents and Settings\test\test2\*.txt This does not work... C:\Documents and Settings\testdel C:/Documents and Settings/test/test2/*.txt The system cannot find the path specified. Swap your forward slashes for back slashes... and you may even need to protect them from the windows shell too. HTH. -- Carey Matthew Black Remedy Skilled Professional (RSP) ARS = Action Request System(Remedy) Love, then teach Solution = People + Process + Tools Fast, Accurate, Cheap Pick two. On Fri, Aug 29, 2008 at 6:18 AM, Coleman, Gavin [EMAIL PROTECTED] wrote: ** Hi List - I wonder if anyone can help me? I have a Run Process action running in a Filter that is trying to delete some files on the Windows 2003 server. My syntax for this is: Del $RP API Folder$logs/$z1D_RP_Delete_Logs_Day$/*.log Values for these variables are $RP API Folder$ = C:/remedy/install/itspdev/api/bin/ $z1D_RP_Delete_Logs_Day$ = Saturday Looking in the log files I can see the following happening: 0: Process FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN Error while performing filter action I have tried the Run Process with quotes and without and nothing works. I get another error in the arerror.log which shows the following: 390620 : Failure while trying to run the filter/escalation process (ARERR 24) Fri Aug 29 10:57:42 2008 No error : DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log Can anybody point out where I'm going wrong? Or failing that suggest a way to delete some files on the server based on variables? Thanks for your help! Gavin Coleman Senior Analyst/Programmer Computacenter (UK) Ltd Services Solutions Hatfield Avenue Hatfield, Hertfordshire, AL10 9TW, United Kingdom T: +44 (0) 1707 631662 E: [EMAIL PROTECTED] W: www.computacenter.com ** COMPUTACENTER PLC is registered in England and Wales with the registered number 03110569. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW COMPUTACENTER (UK) Limited is registered in England and Wales with the registered number 01584718. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW The contents of this email are intended for the named addressee only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive mail for the addressee) you may not copy or use it, or disclose it to anyone else. If you receive it in error please notify us immediately and then destroy it. Computacenter information is available from: http://www.computacenter.com ** __Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are html___ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are
Re: Help with Run Process - Deleting files on a server
I'm wondering if maybe you have to call the shell first...since DEL is an internal command and not an executable...I think Try this: cmd /c del C:\remedy\install\itspdev\api\bin\logs\Saturday\*.log --- J.T. Shyman -Original Message- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Coleman, Gavin Sent: Friday, August 29, 2008 8:13 AM To: arslist@ARSLIST.ORG Subject: Re: Help with Run Process - Deleting files on a server Hi Carey - thanks for the response. Yes, completely forgot about the difference between Unix and Windows. My fault! I've replace the forward slashes with backslashes, but I still get the same result: 0: Process FLTR TID: 003792 RPC ID: 003721 Queue: Fast Client-RPC: 390620USER: GCOLEMAN DEL C:\remedy\install\itspdev\api\bin\logs\Saturday\*.log FLTR TID: 003792 RPC ID: 003721 Queue: Fast Client-RPC: 390620USER: GCOLEMAN Error while performing filter action Has anybody got any other ideas? For information, we are running ARS 6.3 patch 22 on an Oracle Database. Thanks, Gavin Coleman Senior Analyst/Programmer Computacenter (UK) Ltd Services Solutions Hatfield Avenue Hatfield, Hertfordshire, AL10 9TW, United Kingdom T: +44 (0) 1707 631662 E: [EMAIL PROTECTED] W: www.computacenter.com -Original Message- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black Sent: 29 August 2008 12:17 To: arslist@ARSLIST.ORG Subject: Re: Help with Run Process - Deleting files on a server Gavin, You have spent to much time in Un*x land This works C:\Documents and Settings\testdel C:\Documents and Settings\test\test2\*.txt This does not work... C:\Documents and Settings\testdel C:/Documents and Settings/test/test2/*.txt The system cannot find the path specified. Swap your forward slashes for back slashes... and you may even need to protect them from the windows shell too. HTH. -- Carey Matthew Black Remedy Skilled Professional (RSP) ARS = Action Request System(Remedy) Love, then teach Solution = People + Process + Tools Fast, Accurate, Cheap Pick two. On Fri, Aug 29, 2008 at 6:18 AM, Coleman, Gavin [EMAIL PROTECTED] wrote: ** Hi List - I wonder if anyone can help me? I have a Run Process action running in a Filter that is trying to delete some files on the Windows 2003 server. My syntax for this is: Del $RP API Folder$logs/$z1D_RP_Delete_Logs_Day$/*.log Values for these variables are $RP API Folder$ = C:/remedy/install/itspdev/api/bin/ $z1D_RP_Delete_Logs_Day$ = Saturday Looking in the log files I can see the following happening: 0: Process FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log FLTR TID: 002828 RPC ID: 002145 Queue: Fast Client-RPC: 390620USER: GCOLEMAN Error while performing filter action I have tried the Run Process with quotes and without and nothing works. I get another error in the arerror.log which shows the following: 390620 : Failure while trying to run the filter/escalation process (ARERR 24) Fri Aug 29 10:57:42 2008 No error : DEL C:/remedy/install/itspdev/api/bin/logs/Saturday/*.log Can anybody point out where I'm going wrong? Or failing that suggest a way to delete some files on the server based on variables? Thanks for your help! Gavin Coleman Senior Analyst/Programmer Computacenter (UK) Ltd Services Solutions Hatfield Avenue Hatfield, Hertfordshire, AL10 9TW, United Kingdom T: +44 (0) 1707 631662 E: [EMAIL PROTECTED] W: www.computacenter.com ** COMPUTACENTER PLC is registered in England and Wales with the registered number 03110569. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW COMPUTACENTER (UK) Limited is registered in England and Wales with the registered number 01584718. Its registered office is at Hatfield Business Park, Hatfield Avenue, Hatfield, Hertfordshire AL10 9TW The contents of this email are intended for the named addressee only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive mail for the addressee) you may not copy or use it, or disclose it to anyone else. If you receive it in error please notify us immediately and then destroy it. Computacenter information is available from: http://www.computacenter.com ** __Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are html___