0
cfexecute, batch file, and a ftp script
New Here
,
/t5/coldfusion-discussions/cfexecute-batch-file-and-a-ftp-script/td-p/807228
Apr 27, 2006
Apr 27, 2006
Copy link to clipboard
Copied
I have a batch file which works fine when entered in at the
command prompt;
C:/temp/mybat.bat
but when I use cfexecute it fails.
Now this may be more of a case of what I am calling than CF itself.
here is the output:
C:\CFusionMX7\runtime\bin>"C:\Program Files\Ipswitch\WS_FTP Professional\ftpscrpt" -f C:\temp\poolsite.scp Processing Line 1 [CONNECT pacmed -p] Finding Host poolsite... Address lookup of "poolsite" failed. It may be misspelled, or your computer may not be connected to the network or Internet. Also check that your DNS and local name servers are properly configured and responding. Failure in command [CONNECT poolsite-p] Processing Line 2 [ONSUCCESS SHELL C:/temp/remove.bat] Set [ONSUCCESS] action to [SHELL C:/temp/remove.bat] Processing Line 3 [MPUT c:/temp/apptTxfr/*.*] Not Connected Failure in command [MPUT c:/temp/apptTxfr/*.*] C:\CFusionMX7\runtime\bin>ECHO OFF
the very odd thing, is again, when I call this from a command line, it works fine.
are there any wrappers or special ways I need to encapsulate this when using cfexecute?
C:/temp/mybat.bat
but when I use cfexecute it fails.
Now this may be more of a case of what I am calling than CF itself.
here is the output:
C:\CFusionMX7\runtime\bin>"C:\Program Files\Ipswitch\WS_FTP Professional\ftpscrpt" -f C:\temp\poolsite.scp Processing Line 1 [CONNECT pacmed -p] Finding Host poolsite... Address lookup of "poolsite" failed. It may be misspelled, or your computer may not be connected to the network or Internet. Also check that your DNS and local name servers are properly configured and responding. Failure in command [CONNECT poolsite-p] Processing Line 2 [ONSUCCESS SHELL C:/temp/remove.bat] Set [ONSUCCESS] action to [SHELL C:/temp/remove.bat] Processing Line 3 [MPUT c:/temp/apptTxfr/*.*] Not Connected Failure in command [MPUT c:/temp/apptTxfr/*.*] C:\CFusionMX7\runtime\bin>ECHO OFF
the very odd thing, is again, when I call this from a command line, it works fine.
are there any wrappers or special ways I need to encapsulate this when using cfexecute?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Participant
,
/t5/coldfusion-discussions/cfexecute-batch-file-and-a-ftp-script/m-p/807229#M74878
Apr 27, 2006
Apr 27, 2006
Copy link to clipboard
Copied
Looks like account problem. What account CF service is using?
Try, at least temporarily, change the account to the one you used
interactively. See if it helps.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/coldfusion-discussions/cfexecute-batch-file-and-a-ftp-script/m-p/807230#M74879
Apr 28, 2006
Apr 28, 2006
Copy link to clipboard
Copied
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
dr_bozak
AUTHOR
New Here
,
/t5/coldfusion-discussions/cfexecute-batch-file-and-a-ftp-script/m-p/807231#M74880
Apr 28, 2006
Apr 28, 2006
Copy link to clipboard
Copied
Thank you for the suggestions. The odd thing though, is it
looks like it calling the batch file just fine. It's just that for
whatever reason, the ftp client isn't getting fed the paramters
correctly. Ie
Processing Line 1 [CONNECT poolsite-p] Finding Host poolsite...
passing -p tells the ftp client to use a prefdefined site profile (poolsite), instead of using the hostname poolsite. Basically it is if for whatever reason the ftp program is not reading it''s scp file correctly when invoked from CF.
I'll check out the permissions and report back.
thanks for the suggestion.
Processing Line 1 [CONNECT poolsite-p] Finding Host poolsite...
passing -p tells the ftp client to use a prefdefined site profile (poolsite), instead of using the hostname poolsite. Basically it is if for whatever reason the ftp program is not reading it''s scp file correctly when invoked from CF.
I'll check out the permissions and report back.
thanks for the suggestion.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Participant
,
LATEST
/t5/coldfusion-discussions/cfexecute-batch-file-and-a-ftp-script/m-p/807232#M74881
Apr 28, 2006
Apr 28, 2006
Copy link to clipboard
Copied
I see... This explains why DNS lookup fails. As I understand
your FTP script is in that *.scp file? What is you batch file
exactly?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

