mareoraft Posted December 17, 2013 Posted December 17, 2013 I do not know how to do one simple (but important!) thing. How do I output from my perl script so that I have a {query} to post as a notification? My workflow looks like this... KEYWORD -------> RUN SCRIPT (/usr/bin/perl) -----------> POST NOTIFICATION (from {query}) My perl script says... $i = '{query}'; #$print "$i"; #system("echo $i"); #return $i; I commented out all three because none of them worked. How do I output to the NOTIFICATION? Thanks!
jdfwarrior Posted December 17, 2013 Posted December 17, 2013 I do not know how to do one simple (but important!) thing. How do I output from my perl script so that I have a {query} to post as a notification? My workflow looks like this... KEYWORD -------> RUN SCRIPT (/usr/bin/perl) -----------> POST NOTIFICATION (from {query}) My perl script says... $i = '{query}'; #$print "$i"; #system("echo $i"); #return $i; I commented out all three because none of them worked. How do I output to the NOTIFICATION? Thanks! I know nothing about perl but doing a simple.. $i = "{query}"; print $i; Seemed to work when passing to a notification. In the notification, set the message to {query}
mareoraft Posted December 17, 2013 Author Posted December 17, 2013 You're right. Somehow I put a $ in front of print by mistake. Also, using $i = '{query}' in my more complex program caused issues, although i have no idea why. It needed double quotes. But in the simpler program, both behaved the same.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now