Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline tam_helpdesk  
#1 Posted : Wednesday, August 8, 2018 10:07:22 PM(UTC)
tam_helpdesk

Rank: Paid support

Joined: 12/30/2013(UTC)
Posts: 14
United States

Was thanked: 2 time(s) in 2 post(s)
So,

I'm writing a task which preforms an FTP download. It needs to download 2 files, and should fail if it only downloads one. So in the 'on error' tab, I tell visualcron:
Code:
throw error 77777 if standard output does not contain XYZ;ABC
Will it throw if the output does not contain both? Or will it just consider the semi-colon as part of the match string? Am I better off putting that in 2 separate tasks, or can error handling perform multi-variable output checking?

Thanks!
Offline Support  
#2 Posted : Thursday, August 9, 2018 6:57:04 PM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 11,167

Thanks: 866 times
Was thanked: 443 time(s) in 421 post(s)
You can check the download count instead. If less than 1 than one then do x or similar. Use this Variable:

{TASK(Active|Result.NoDownloadedFiles)}

or if used in follow up Task:

{TASK(PrevTask|Result.NoDownloadedFiles)}
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top