#!/usr/bash username="username" password="password" echo "Setting Display" export DISPLAY=:0 echo "Sending Username" for char in $(sed -E s/'(.)'/'\1 '/g <<<"$username"); do xdotool key $char done xdotool key Tab echo "Sending Password" for char in $(sed -E s/'(.)'/'\1 '/g <<<"$password"); do xdotool key $char done xdotool key Return echo "Waiting 5 Seconds" sleep 5 echo "Setting Remember Password" xdotool key Tab xdotool key Tab xdotool key Return echo "Finished"
to the rc.local file - but it doesn't send the keystrokes to the browser?
on the line before it to stop if firing right away and wait until the browser has loaded - and I know the script is running from rc.local, because when I remove the sleep command, I see the echos from the script.
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|How to change the nameserver on Ubuntu Server||6||78|
|trouble on installing syslog-ng on CentOS 7||7||101|
|When trying to install php-fpm on CentOS 7 - GPG error||2||102|
|Can't "Unset" Proxy in Apache headers for PCI compliance...||4||44|