'Bootstrap failed: 5: Input/output error ( Python Script Automation on Mac)
I've been trying to automate this python script that goes to my college website and writes the latest notice into a textfile,via selenium. The script works successfully when executed mannually. I'm on MacOs BigSur. After dozens of attempts of trying to automate it via cron. I just read that cron is outdated for the newer versions of MacOS. I've been trying to learn the other alternative i.e. launchd. I've understood the syntax of the plist xml file and have been trying to run it. But whenever, I try to launch it using launchctl bootstrap gui/....I get a Bootstrap failed :5 error. Below is my plist file. Could someone help me out?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//APPLE//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"
<plist version="1.0">
<dict>
<key>Label</key>
<string>py.ChowguleNoticeUpdate</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>source</string>
<string>/Users/Logan/PycharmProjects/Selenium/venv/bin/activate</string>
<string>&&</string>
<string>python3.6</string>
<string>/Users/Logan/PycharmProjects/Selenium/ChowguleUpdateNotice.py</string>
<string>&&</string>
<string>deactivate</string>
</array>
<key>StartInterval</key>
<integer>3600</integer>
<key>StandardOutPath</key>
<string>/Users/Logan/PycharmProjects/Selenium/logfiles/stdout.log</string>
<key>StandardErrorPath</key>
<string>/Users/Logan/PycharmProjects/Selenium/logfiles/stderr.log</string>
</dict>
</plist>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
