Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Template.body.helpers({
- myfile: function(){
- return myfile_contents;
- }
- });
- if (Meteor.isServer) {
- myfile: function(){
- var fs = Npm.require("fs");
- fs.readFile('/opt/SI/SIAgent/conf/SI_crontab','utf-8', function (err, data) {
- file_contents = data;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement