Here's mine. It does what you want to do (plus or minus): 1AW51E# cat D #!/bin/sh if [ $1. = . ] then echo "No display file provided" exit 1 fi if [ ! -f $1 ] then echo "Display file does not exist" exit 1 fi d_edit -dump $1 vi $1.dmp d_edit -upload $1 rm $1.dmp It really should have a full path name for d_edit, but I put that on my PATH so... Regards, Alex Johnson Invensys Systems, Inc. 10707 Haddington Houston, TX 77043 713.722.2859 (voice) 713.722.2700 (operator) 713.932.0222 (fax) ajohnson@xxxxxxxxxxx For the latest information on ArchestrA, go to http://www.invensys.com/Archestra.html. -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Troy L Brazell Sent: Wednesday, May 05, 2004 9:13 AM To: foxboro@xxxxxxxxxxxxx Subject: [foxboro] Script to run d_edit Guys, I am looking for a script that will run d_edit on for dm. Tried the following and I get permission denied errors and then told that the display is not a file. Any help will be greatly appreciated and if someone knows if it is in the achieves please let me know. for x in $* do if [-f $x] then /usr/fox/wp/bin/tools/d_edit -dump $x textedit $x.dmp /usr/fox/wp/bin/tools/d_edit -upload $x rm $x.dmp else echo $x is Not a file!!!! fi done I tried all of the chmod commands that I could find and an ls -l on the file returns -rwxrwxrw- Thanks for the help! T.L. Brazell Senior Process Control Analyst Cell 806-898-4340 Office 806-275-5274 Home 806-935-7281 tlbrazell@xxxxxxxxxxxxxxx ******************************************************* Remember that each of us can choose to make a difference! ******************************************************* _______________________________________________________________________ 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 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