I have the following Python script, chmod +x'd. When I run this script from the command line and Putty has not been started, it launches putty:#!/usr/bin/env pythonfrom __future__ import print_functionimport shleximport subprocessoutput = subprocess.check_output(['ps', 'aux'])found = Falsefor line in output.split('\n'):    if line.endswith('putty -load test'):        found = True        breakif not found:    print(Starting Putty)    subprocess.Popen(['putty',                      '-load',                      'test'])else:    print(Putty going strong)However, if I don't start putty, then it will just keep saying Starting Putty (which I have directed to a file for logging).My guess is that it has something to do with the display, but I'm not sure how to fix it or even exactly what I would look for.
Putty doesn't seem to start from python'd crontab
ssh;cron;putty