Skip to content

Commit

Permalink
all files
Browse files Browse the repository at this point in the history
  • Loading branch information
IAP-spook committed Feb 6, 2017
1 parent 650023e commit be23131
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cron.my
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# m h dom mon dow command
@reboot /home/YN_Wang/little_py_scripts/wk_restart.sh

6 changes: 6 additions & 0 deletions ip_address.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
201702061458 172.16.1.185
201702061500 172.16.1.185
201702061506 172.16.1.185
201702061516 172.16.1.185
201702061522 172.16.1.185
201702061527 172.16.1.185
9 changes: 9 additions & 0 deletions make_crontab_file.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
cat >cron.my <<EOF
# m h dom mon dow command
@reboot /home/YN_Wang/little_py_scripts/wk_restart.sh
EOF

#==Submit the cron jobs====

8 changes: 8 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/python
# -*-coding:utf-8 -*-
import subprocess

var='-la'
#subprocess.call('ls',shell=True)
output=subprocess.Popen('ls '+var,shell=True)

1 change: 1 addition & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2017年 02月 06日 星期一 14:47:40 CST
3 changes: 3 additions & 0 deletions wk_restart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
cd /home/YN_Wang/little_py_scripts
python get_my_ip.py

0 comments on commit be23131

Please sign in to comment.