node-cron-notifier
v1.0.1
Published
Execute a node script at any cron time and trigger os native notifications for any event in the script
Downloads
4
Readme
Node Cron Notifier
- Execute a node script at any cron time and trigger os native notifications for any event in the script
- Combines the functionalities of
node-cron
andnode-notifier
- This is intended for use in end systems and not in servers.
Usage
node-cron-notifier run <crontime> <taskname> <absolutejsfilepath>
Notes
Cron time - Refer cron syntax
Notification Trigger
- To denote success use,
process.send(data)
- To denote error and exit use,
process.exit(1)
- To denote success use,
Only internal node libraries and globally installed packages can be executed. If you use external package in your script, you must install it globally.
Adding to System startup
Refer this link for details on how to add node-cron-notifier to system startup.