I have an "expect" script set up to log on to a remote sftp location, upload available files from my end.
I have a php process that will create those files. My biggest issue is how can I cannot connect these two processes?
I've tried "exec()" and it doesn't seem to respond (though it does come up asking a question that I need to answer YES OR NO to when I echo the result)...but thats unexpected so I'm not sure exactly what its doing.
Is this even possible?
Step 1: PHP creates and drops files into a home directory setup for the customer.
Step 2: Script (expect) pushes the files to the remote location.
Step 3: Script moves the local files into a outgoing_complete folder.
Step 2 is where I'm having the issue. Any help would be grateful. Thanks.