I want to access and change the text which shows the current status of the process via python plugin.Can this be done and how?
122789
Is there any way to show our custom message in Qgis Status bar using python? Just like in arcgis IApplication.statusbar.message(0) = "Please wait..."  like that is there any option to show progressbar in Qgis like IApplication.progressbar.show()
11663
I am looking for a way to clean up the mess when my top-level script exits.  Especially if I want to use set -e, I wish the background process would die when the script exits.
85719
I want to output a file's contents while they change, for example if I have the file foobar and I do:  magic_command foobar  The current terminal should display the file's contents and wait until, I don't know, I press ^C.  Then if from another terminal I do:  echo asdf &gt;&gt; foobar  The first terminal should display the newly added line in addition to the original file contents (of course, given that I didn't press ^C).
5735
I must have a blind spot, but I cannot find what it is.   I made a small python script that removes VLC from the sound menu. It runs perfectly in any way I run it from the terminal or from a launcher or whatever you can think of.   What the script actually does is nothing more than get the get the current settings:  gsettings get com.canonical.indicator.sound interested-media-players   edit the list, and set the changed list by:  gsettings set com.canonical.indicator.sound interested-media-players "['newlist']"   These commands are executed by a python script,. However, when run from a cronjob (crontab -e) only the gsettings - get - part works, but not the gsettings - set - section. That the get section works fine with cron, I checked by making the script write data (the original as well as the edited) to an external file.  Not a python problem  To see if the problem is related to python code, I created a bash script that applies a changed sound menu items list. The story is the same: the bash script runs fine from the command line or a launcher, not from cron, while any other command in the same script would run fine. Also, if I add any command at the end of the script below, it works fine and it looks like the script is satisfied with its own work.  Why is the gsettings set command not working when initiated from cron?  This is the script:  #!/usr/bin/python3 import subprocess  def read_soundmenu():     # read the current launcher contents     get_menuitems = subprocess.Popen([         "gsettings", "get", "com.canonical.indicator.sound", "interested-media-players"         ], stdout=subprocess.PIPE)     return eval((get_menuitems.communicate()[0].decode("utf-8")))  def set_current_menu(current_list): # this takes no effect from cron     # preparing subprocess command string     current_list = str(current_list).replace(", ", ",")     subprocess.Popen([         "gsettings", "set", "com.canonical.indicator.sound", "interested-media-players",         current_list,         ])  current_list = read_soundmenu() for item in current_list:     if item == "vlc.desktop":         current_list.remove(item) set_current_menu(current_list)
91886
I wrote a simple script   #!/bin/bash -x  selentry=`ls -l / | sort ; ts=${PIPESTATUS[0]}`  echo $ts   but $ts show nothing. How I can display $ts variable, or how I can get exit status code from command in variable?  selentry=`ls -l / | sort`
103220
I would like to monitor one process's memory / cpu usage in real time. Similar to top but targeted at only one process, preferably with a history graph of some sort.
115666
There's any way to change it directly by Python, or there's any way to set by Python what node image is the active to display in viewport (Textured) and bake?
58505
I need to write a small program that can detect that it has been changed. Please give me a suggestion!  Thank you.
3312
I have scripts calling other script files but I need to get the filepath of the file that is currently running within the process.   For example, let's say I have three files. Using :   script_1.py calls script_2.py.  In turn, script_2.py calls script_3.py.    How can I get the file name and path of script_3.py, from code within script_3.py, without having to pass that information as arguments from script_2.py?  (Executing os.getcwd() returns the original starting script's filepath not the current file's.)
60288
For example, if I change the sound volume by the ubuntu desktop widget, I think it will issue some commands to the shell or run a script.  Is it possible to see what it runs?
37164
Is there a way to get the name of the currently executing method in Java?
25958
I have a log file being written by another process which I want to watch for changes. Each time a change occurs I'd like to read the new data in to do some processing on it.  What's the best way to do this? I was hoping there'd be some sort of hook from the PyWin32 library. I've found the win32file.FindNextChangeNotification function but have no idea how to ask it to watch a specific file.  If anyone's done anything like this I'd be really grateful to hear how...  [Edit] I should have mentioned that I was after a solution that doesn't require polling.  [Edit] Curses! It seems this doesn't work over a mapped network drive. I'm guessing windows doesn't 'hear' any updates to the file the way it does on a local disk.
53939
I want my shell prompt to look like a cheeseburger! 🍔🍔🍔  It would be nice if it also displayed: username, hostname, and current directory.
31993
I would like a command that displays the battery status in the terminal.
21484
I'm currently twiddling with an old addon and insert some print statements for debugging. Currently I'm restarting Blender each time to see the new messages. Is there a way to 'refresh' an already loaded Python script?  An API call would be preferred to disable/re-enable the addon in the User Preferences dialog.
110305
I need to hook onto output of currently running terminal (tty1) from virtual terminal and capture it (running X server).
46129
I really like the look of the output of   But that script is only used for Input/Output operations.  How can I use it as a replacement for sleep but with visual feedback?  sleep 10