Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


sglaze
2009-08-12T23:03:27Z
We would like to upload a file using a file mask via SFTP and have it renamed after being uploaded. Example:

trades*.dat

trades20090812.dat -> /data/trades20090812.dat_M -> /data/trades20090812.dat

The purpose of this is to avoid a trigger in UNIX.

Currently, Visualcron has no way in an SFTP job to capture the name of the file being sent - unless we use a trigger which we cannot use (file sits on fileshare, loses network connectivity from time to time and the trigger gets missed).

Thank you
Spencer
Sponsor
Forum information
GrahamG
2009-08-13T09:39:13Z

Henrik,

Could you implement a "use temp filename" for all (S)FTP uploads, I have seen this problem many times before where the file has not finished transerring but gets actioned by a remote application prior to completion.

It is especially a problem on non-Windows systems which may simply poll the directory at a specified time to see if there are any files to process and don't detect correctly whether the file handle has been closed.

Ideally the new feature would either allow the use of a temp(random) filename and/or allow a specified temp suffix/prefix.


Graham


Support
2009-08-13T11:38:35Z
Yes, temporary Variables could solve the problem. Please specify all Variables you want to access for each Task.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
GrahamG
2009-08-13T11:49:27Z
Hi Support,

What I meant was that, this is a tick box and that VC generates a temporary filename as part of the upload and then renames the file to the final filename on completion of upload automatically.

It could be handled through 2 FTP tasks, an upload and a rename, but it starts getting awfully messy.

It would be hugely benficial to have the feature built in. 😁

Support
2009-08-13T11:54:46Z
What about destination file mask like in Rename Task?

GrahamG wrote:

Hi Support,

What I meant was that, this is a tick box and that VC generates a temporary filename as part of the upload and then renames the file to the final filename on completion of upload automatically.

It could be handled through 2 FTP tasks, an upload and a rename, but it starts getting awfully messy.

It would be hugely benficial to have the feature built in. 😁



Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
GrahamG
2009-08-13T15:19:04Z
That would probably work.

Scroll to Top