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


michaelhum
2021-04-21T00:15:56Z
Hi,
I'm running VisualCron version 9.7.5. The touch file task, creates a file (if the file does not exist).
Example. In the task, touch file, I set the file pattern to happy.txt. I'm checking the directory c:\docs. The happy.txt file does not exist in the c:\docs directory. When the task runs, it creates the happy.txt file. This was not the behaviour in version 9.3.0. In version 9.3.0, a file is not created. Is this the expected behaviour in version 9.7.5?

touchfile.jpg
Sponsor
Forum information
michaelhum
Danny van Oijen
2021-04-21T11:26:24Z
Michael,

I think it is meant to do that...
In the Linux world when using the touch command it also creates the file.

What you could do is first list all files in the dir, than when happy.txt exists touch it, if not than exit.
Joey S
2021-04-21T18:02:05Z
It does that for me too (since at least v9.6.5) but I find it hard to accept the statement "it is supposed to do that"...It did not do that before
Support
2021-04-22T12:02:01Z
Originally Posted by: Joey S 

It does that for me too (since at least v9.6.5) but I find it hard to accept the statement "it is supposed to do that"...It did not do that before



https://www.geeksforgeek...-in-linux-with-examples/ 

This is directly taken from the linux command.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Support
2021-04-22T12:28:18Z
Originally Posted by: Joey S 

It does that for me too (since at least v9.6.5) but I find it hard to accept the statement "it is supposed to do that"...It did not do that before



You're right - a bug that now has been fixed.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
michaelhum
2021-04-22T22:04:09Z
Originally Posted by: Danny van Oijen 

Michael,

I think it is meant to do that...
In the Linux world when using the touch command it also creates the file.

What you could do is first list all files in the dir, than when happy.txt exists touch it, if not than exit.



Thanks for the feedback.

My question was, "in previous versions it did not do this...but does it now...is this the expected result".

The answer is, "this is the expected result".

michaelhum
2021-04-22T22:11:16Z
Originally Posted by: Danny van Oijen 

Michael,

I think it is meant to do that...
In the Linux world when using the touch command it also creates the file.

What you could do is first list all files in the dir, than when happy.txt exists touch it, if not than exit.



It would be helpful for these type of changes in behaviour or "bug fixes" be listed in the release notes. I dont recall seeing anything mentioned about a change in the "touch files" task. Which is another reason why I posted the question. Yeah, seems obvious right?

Support
2021-04-23T12:29:03Z
Originally Posted by: michaelhum 

Originally Posted by: Danny van Oijen 

Michael,

I think it is meant to do that...
In the Linux world when using the touch command it also creates the file.

What you could do is first list all files in the dir, than when happy.txt exists touch it, if not than exit.



It would be helpful for these type of changes in behaviour or "bug fixes" be listed in the release notes. I dont recall seeing anything mentioned about a change in the "touch files" task. Which is another reason why I posted the question. Yeah, seems obvious right?



I understand that. We are working on improving it on our end to make sure you get every single detail and change in the changelog. In rare cases it can happen so that a rather unknown bug/wrongful behaviour can be fixed in a change done somewhere else without us noticing if it for some reason slips past our test procedure. Could have been the case here, i'm not entirely sure.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Casper
2021-04-23T23:45:59Z
Originally Posted by: michaelhum 

Originally Posted by: Danny van Oijen 

Michael,

I think it is meant to do that...
In the Linux world when using the touch command it also creates the file.

What you could do is first list all files in the dir, than when happy.txt exists touch it, if not than exit.



It would be helpful for these type of changes in behaviour or "bug fixes" be listed in the release notes. I dont recall seeing anything mentioned about a change in the "touch files" task. Which is another reason why I posted the question. Yeah, seems obvious right?



Hi, michaelhum, this was written in the changelog of version 9.3.5
https://www.visualcron.com/changelog.aspx 

[BUGFIX] Server: Touch file Task->Fixed issue not creating files if file was not found (VC-1526)
Scroll to Top