Search found 30 matches

by Joerg Schober
Tue Sep 16, 2014 2:43 pm
Forum: Scripting
Topic: regex: Lookbehind not supported?
Replies: 4
Views: 2010

regex: Lookbehind not supported?

Thanks Freddy for the reply. There are also other filenames that are different (SE_MM_1804, ...), so the regex needed in production enviroment is (?<=[a-zA-Z]{1,2}_)[a-zA-Z]{2} How could i solve this issue. Is a script expression possible? Supports javascript lookbehind (with variable length)? It se...
by Joerg Schober
Tue Sep 16, 2014 10:21 am
Forum: Scripting
Topic: ssh/execute command
Replies: 3
Views: 2732

ssh/execute command

Hi jonasy,

thanks for your reply an the link. I also tried these ways - without success.

If you want to make further tests i suggest you setup the "passwordless account" first:

http://www.laubenheimer.net/ssh-keys.shtml



br,

Jörg
by Joerg Schober
Tue Sep 16, 2014 9:46 am
Forum: Scripting
Topic: regex: Lookbehind not supported?
Replies: 4
Views: 2010

regex: Lookbehind not supported?

Hi,

trying to add hierarchy. For this, I try to extract "SA" from jobname

D_SA_1040.pdf



The used regex is

(?<=[a-zA-Z]{1}_)[a-zA-Z]{2}



It does not work. Is lookbehind supported by Switch?



Kind regards,

Jörg
by Joerg Schober
Thu Aug 28, 2014 2:28 pm
Forum: Scripting
Topic: ssh/execute command
Replies: 3
Views: 2732

ssh/execute command

Hi, if i execute the following (simplified for testing) in the terminal (bash) (OS 10.7), it works: ssh user@host "cp /path/to/inputfile /path/to/outputfile" If i do the same with Switch, nothing happens: Command or path: ssh Arguments: user@host "cp /path/to/inputfile /path/to/output...
by Joerg Schober
Wed Jul 09, 2014 10:29 am
Forum: Scripting
Topic: insert private Data
Replies: 6
Views: 3971

insert private Data

Thanks, Freddy.

Do you have an example for a script expression?


by Joerg Schober
Wed Jul 09, 2014 9:44 am
Forum: Scripting
Topic: insert private Data
Replies: 6
Views: 3971

insert private Data

Hi,

for creation of private Data (Job.PrivateData) it is necessary to use a script element, right?



Kind regards,

Jörg
by Joerg Schober
Wed May 28, 2014 9:58 am
Forum: Applications
Topic: Is Switch 12 buggy ?
Replies: 13
Views: 11541

Is Switch 12 buggy ?

I am also experiencing this. The file count on folders don't seem to refresh real time as was with Switch 11. Same is true for me with activating and deactivating flows. On several occassions, I've had to force reboot my server just to restart Switch. Also my experience: The file count on folders is...
by Joerg Schober
Tue Nov 12, 2013 4:02 pm
Forum: Flows
Topic: Archive Email
Replies: 3
Views: 2022

Archive Email

You could CC: a different account, retrieve email from that account and save to file. Sounds good. With this solution i get the email body text as a plain textfile and the other informations as metadata (Switch variables). But how to mix the body text with the required metadata (sender, receivers, s...
by Joerg Schober
Mon Nov 11, 2013 2:53 pm
Forum: Flows
Topic: Archive Email
Replies: 3
Views: 2022

Archive Email

Hi,

we deliver PDFs per Switchs mail send. Now the demand is that the emails should be archived on filesystem, too. I don't have any clue how to solve this.

Any ideas?



Kind regards,

Jörg
by Joerg Schober
Thu Jul 25, 2013 8:56 am
Forum: Scripting
Topic: Send Mail: Define sender
Replies: 4
Views: 2431

Send Mail: Define sender

I wrote a FR last tuesday, too.
by Joerg Schober
Wed Jul 24, 2013 4:43 pm
Forum: Scripting
Topic: Send Mail: Define sender
Replies: 4
Views: 2431

Send Mail: Define sender

Hi Freddy, I'm aware of this and i already use it. The main reason for the demand are out-of-office-mails: We send out > 100 mails per day and in the holiday season we get many out-of-office notifications. The most are replied to the sender and not to the reply-to adress. Kind regards, Jörg
by Joerg Schober
Tue Jul 23, 2013 2:17 pm
Forum: Scripting
Topic: Send Mail: Define sender
Replies: 4
Views: 2431

Send Mail: Define sender

The send mail-element does not allow to define the sender of the mail, this adress is defined in the switch preferences. We have the requirement to send from various email-adresses. Is a script or a similar solution available for this?



Kind regards,

Jörg
by Joerg Schober
Fri May 10, 2013 3:18 pm
Forum: Scripting
Topic: execute command logfile
Replies: 4
Views: 3052

execute command logfile

tz8 wrote: as we obviously had no clue how to help you would you kindly share your solution? Hard to believe that none of the other checkers here have a solution ... anyhow - that the solution of a scripting-greenhorn (on a mac): build a shellscript: /bin/echo $1 >> $2 setup "execute command&qu...
by Joerg Schober
Tue May 07, 2013 4:12 pm
Forum: Scripting
Topic: execute command logfile
Replies: 4
Views: 3052

execute command logfile

thanks for the many replies ;-)



works now.
by Joerg Schober
Thu May 02, 2013 9:17 am
Forum: Scripting
Topic: execute command logfile
Replies: 4
Views: 3052

execute command logfile

Hi, not really scripting related, but i think this is the best-matching forum. I need a simple logging for Switch and tried it with "execute command". Something like that: echo "[Job.NameProper]_[Switch.Date:Format=yyyy-MM-dd_hh-mm]" >> ~/switchlog.txt Is that possible? BTW, a si...