use os.homeDir
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ const schedule = require("node-schedule");
|
||||
//faubourg, random
|
||||
schedule.scheduleJob('30 10 * * *', function () {
|
||||
console.log("start startBookWithNumbers")
|
||||
startBookWithNumbers(1, 4000, "random", "/Users/panlei/Desktop/gmx_pissmail_manual.xlsx", true, false).then((r) => {
|
||||
startBookWithNumbers(1, 6000, "random", "/Users/panlei/Desktop/03_05_to_test.xlsx", true, false).then((r) => {
|
||||
console.log(r)
|
||||
})
|
||||
})
|
||||
@@ -1,5 +1,7 @@
|
||||
const {exec} = require("child_process");
|
||||
const baseDir = "/Users/panlei/Documents/workspace/MacOCI"
|
||||
const {homedir} = require("os");
|
||||
homeDir = homedir()
|
||||
const baseDir = homeDir + "/Documents/workspace/MacOCI"
|
||||
|
||||
|
||||
function cmdExecute(command) {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
const {startBookWithNumbers} = require('./src/appointment')
|
||||
const {homedir} = require("os");
|
||||
homeDir = homedir()
|
||||
//faubourg, random
|
||||
startBookWithNumbers(1, 4000, "random", "/Users/panlei/Desktop/yahoo_aol.xlsx", true, false).then((r) => {
|
||||
startBookWithNumbers(1, 10000, "random", homeDir + "/Desktop/contact_list_all.xlsx", true, false).then((r) => {
|
||||
console.log(r)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user