import sys
import platform
import os
if platform.system() == "Linux":
cmd= ' sudo wall "System going to shutdown at 5:00 AM UST"'
os.system(cmd)
print("Type yes/no to snooze the shutdwon ")
snooze=input('snooze:')
def shutdown():
if snooze == "yes" :
delay_time=input("enter delay_time to shutdown:")
if platform.system()== 'Linux':
print(" Hello this is Linux os")
command= 'sudo wall "System going to shutdown at {} "'.format(delay_time)
os.system(command)
if platform.system() == "Linux" and snooze == "no":
cmd= 'sudo wall "System going to shutdown at 5:00 AM UST"'
os.system(cmd)
shutdown()
After running through cron job I'm getting just broadcast message so I need to get user input yes or no to snooze .Please help me.