Notify-send -i error -u critical "ERROR: One Drive" "Failed to mount OneDrive. In addition, there is some enrichment material which can be completed individually or in groups. While pgrep -f "rclone -vfs-cache-mode writes mount OneDrive:" &> /dev/nullįindmnt "$HOME"/OneDrive &> /dev/null & notify-send -i info -u critical "INFO: One Drive" "OneDrive successfully mounted. 10+ million textbook and homework solutions, 24/7 expert help on demand, and math solver for instant solutions to even the toughest math. The Foundations of Mathematics 11 BC Edition Workbook is a complete resource and a 100 fit for the new British Columbia curriculum. Rclone -vv -vfs-cache-mode writes mount OneDrive: ~/OneDrive |& One way is by increasing the rclone command's verbosity and parsing its output ( you need to observe the output to know what to look for, but I did that already): #!/bin/bash Rclone if run in the foreground ( you might want to check the -daemon option) will block executing the consecutive line in your script for as long as it's maintaining that mount (which is actually the whole time it's mounted) The Foundations of Mathematics and Pre-Calculus Grade 10 Workbook is a complete resource and a 100 fit for the combined Western and Northern Canadian mathematics curriculum. confing/autostart/onedrive.sh.desktop Įxec=/home/ernesto/Documents/Scripts/test-message.sh usr/bin/notify-send "OneDrive Connection Failed" "Rclone failed to mount OneDrive."Ĭontent of. Example 1 Polynomial, Radical, and Rational Functions LESSON ONE - Polynomial Functions Lesson Notes 1 2 3 i) x5 + 3 polynomial: yes no 1 iv) 4x2 - 5x - 12. usr/bin/notify-send "OneDrive Connected" "Microsoft OneDrive successfully mounted."Įcho "Failed to mount OneDrive on $(date)" > $ERROR_LOG_FILE # If mount is successful, send a notification Rclone -vfs-cache-mode writes mount OneDrive: ~/OneDrive # Redirect stdout and stderr to OUTPUT_LOG_FILE OUTPUT_LOG_FILE="$HOME/script_output_log.txt" So the issue is basically when run by the Startup Manager.ĮRROR_LOG_FILE="$HOME/onedrive_mount_error_log.txt" I am able to see the notification only when I execute the script from the terminal, or when I run it as a program. I dont write anything useful, just stupid variable testing and math etc. I'm trying to run the following script at startup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |