examples/jobs.lua
changeset 29 0199ecce6c11
parent 27 92b254b64360
child 33 db5396037b43
equal deleted inserted replaced
28:90e52372b595 29:0199ecce6c11
     4 
     4 
     5 -- may fail
     5 -- may fail
     6 dopath 'saved_jobs.lua'
     6 dopath 'saved_jobs.lua'
     7 
     7 
     8 function save_jobs ()
     8 function save_jobs ()
     9 	local h = io.open ( main.config_file ( 'saved_jobs.lua' ), "w" )
     9 	local h = io.open ( main.option ( 'lua_jobs_file' ), "w" )
    10 	if not h then
    10 	if not h then
    11 		print ( 'Cannot open jobs file for writing!' )
    11 		print ( 'Cannot open jobs file for writing!' )
    12 		return
    12 		return
    13 	end
    13 	end
    14 	h:write ( "-- This is autogenerated file, do not edit it manually\n\ndelayed_jobs = {\n" );
    14 	h:write ( "-- This is autogenerated file, do not edit it manually\n\ndelayed_jobs = {\n" );