 			process.exit 0
 		,1000
 else
-    exports = doPid+    exports = doPid

			return

	isrunning = (pid, callback)->
		require('child_process').exec 'ps -A -o pid', (error, stdout, stderr)->
			if error
				#console.log cmdline, error, stdout, stderr
				throw new Error (error)

	fs = require "fs"
	leargs = ""
	leargs+=arg for arg,i in process.argv when arg isnt "coffee" and arg isnt "node" and arg isnt __filename if includeparams
	path = process.env[if (process.platform == 'win32') then 'USERPROFILE' else 'HOME'] + "/.singlerun"
	fs.mkdirSync(path) if !fs.existsSync(path)
	pidfile = path + "/" + __filename.split('/').pop() + (new Buffer(leargs).toString('base64')) + '.pid'
	console.log (new Buffer(leargs).toString('base64'))
	console.log "args : ", leargs
	process.on 'exit', (code) ->
