Iotop shows strange disk WR - Raspberry Pi Forums
the following minimal python script not write disk, right? still iotop shows regular disk wr script! well, not in case.
let me start beginning.
1) when python script contains "print" commands, computer prints on local screen whatever instructed print.
2) when ssh remote computer (no monitor) , start there python script containing "print" commands, results displayed on local screen.
3) should happen when first set in remote computer (no monitor) crontab normal user:
@reboot (sleep 20; /usr/bin/python ~/test-script.py &)
boot remote computer , login using ssh. nothing printed on local screen, right? print output going?
strangely iostat -oa shows disk wr in remote computer, 4 kb blocks python script regularly! real?
i've tested in raspberry/wheezy , desktop kubuntu 14.04. appreciate help. i'd able rid of disk wr. of importance when 1 has sd-disk or ssd-drive , writes occur @ fast rate.
code: select all
#! /usr/bin/python time import sleep while 1: sleep(1) str = "a long string used in tests 1 need not wait long collect 4 kb data" print str
let me start beginning.
1) when python script contains "print" commands, computer prints on local screen whatever instructed print.
2) when ssh remote computer (no monitor) , start there python script containing "print" commands, results displayed on local screen.
3) should happen when first set in remote computer (no monitor) crontab normal user:
@reboot (sleep 20; /usr/bin/python ~/test-script.py &)
boot remote computer , login using ssh. nothing printed on local screen, right? print output going?
strangely iostat -oa shows disk wr in remote computer, 4 kb blocks python script regularly! real?
i've tested in raspberry/wheezy , desktop kubuntu 14.04. appreciate help. i'd able rid of disk wr. of importance when 1 has sd-disk or ssd-drive , writes occur @ fast rate.
when program running under cron writes standard output or standard error, output sent e-mail.
have lot of unread e-mail or lot of entries in log file being unable send e-mail.
either redirect stdout , stderr /dev/null discard output,
or insert line @ top of crontab.
--
ragnar
have lot of unread e-mail or lot of entries in log file being unable send e-mail.
either redirect stdout , stderr /dev/null discard output,
or insert line
code: select all
mailto=""
--
ragnar
raspberrypi
Comments
Post a Comment