Software :: Bash Auto Clearing Screen When Closing Application?
Mar 8, 2010
I've wondered for years how it works and how I can change it. For example, opening a document with vim, or opening a man page, and then exiting out of it will sometimes (depending on the distro) clear the screen and leave your prompt at the very top. other times, it leaves the contents of whatever you had open on-screen and your prompt is at the bottom.
View 1 Replies
ADVERTISEMENT
Jan 15, 2011
I've made custom launchers for programs that can only run in terminal. They open fine within the Terminal window, but it closes right after the program is finished, before I can read the report.
Is there a way to keep the Terminal window open, using launchers? I don't want to manually type the commands after opening a Terminal.
View 2 Replies
View Related
Feb 20, 2010
Does anyone know if there's a way to make nano support auto-complete and auto-bracket closing?
View 1 Replies
View Related
Jul 5, 2010
I need a bash script that auto captures the screen (every 30 sec) and then realize an archive with those screenshots. The script will allow me to quering by user name and date and time framing and if exists a capture archive, it will display a slideshow that presents the captures of specified time.
View 2 Replies
View Related
Jun 2, 2010
Is there any way to stop Rhythmbox from clearing a song from the Play Queue once it has played it?
I searched the forums and haven't found a solution. This question had been raised before, but there was no answer given (the guy who responded confused 'playlist' with 'play queue').
Basically, whenever I queue up files to play in Rhythmbox's Play Queue (and i prefer to use that, since I operate it via Gnome-Do), they are auto-cleared as soon as I have finished playing them. I'd like to stop Rhythmbox from clearing them as I like to put them on repeat.
View 4 Replies
View Related
May 26, 2011
Any time i try to open skype it closes out fully in 5 seconds (not even in the processes anymore). I don't know why or how OR how to make it stop being so mean to me! i'm running ubuntu 10.4 32bit . I tried to boot it in safe mode and umm.. it froze? or crashed? well it was on the black screen with the blinking dot for like 20 mins before i gave up on it (Hiting enter or esc or anything didn't work). There was a key symbol on my panel before skype acted up(It closed and disabled something.. i've never seen it before). Adobe also crashed, and linux did a small update (nothing with skype).
View 14 Replies
View Related
Feb 22, 2010
I have program that work like Fedora Firstboot it's run only one time after finish installation. I have two questions to ask.
1. How can I start this application before gdm start (login screen or auto login)
2. How can I start this application in fix display resolution (800x600)
My method now is
(This is a part of script , this script execute from /etc/init.d/myfirstboot , I create symlink to /etc/rc2.d/S1myfirstboot for start it before anything)
gdm-stop # first time I use /etc/init.d/gdm stop
DISPLAY=:1
export DISPLAY
/usr/bin/Xorg :1 &
[Code]...
I don't understand why first time firstboot start the system will auto loging in but not complete yet and then my script is start and it's work does not fine I think that is another user is already login , but if I re run my firstboot again and again (by setting something that can revoke my firstboot and restart) it's work before auto login and every things is ok!
View 3 Replies
View Related
Nov 13, 2010
I recently noticed my RAM problem. When I start any application it increases RAM usage but even after I close it RAM usage doesn't go down. Instead when I restart that application RAM usage goes up again. Using ubuntu 10.10
View 6 Replies
View Related
Jun 4, 2010
I run the ping command using system() in C. It start pinging the desired destination but when I close my application it continues to ping. Is there any solution that as soon as I close my application it also stops pinging. Any change required in my C code?
View 2 Replies
View Related
Dec 3, 2009
I have a dual-monitor display with a Nvidia GEforce 9400 video card. The login screen has a normal login on the primary display but the second display contains fragments from the previous session. I would like to clear the secondary display so that it does not display information from the previous session.
View 1 Replies
View Related
Jan 2, 2011
i was wondering if there is away to avoid application from closing if a specific library not found? for example: if my application uses libPng and it wasn't found on the system running my app (binary and not source), is there anyway to just disable the part that uses png from my application?
View 14 Replies
View Related
Jul 30, 2011
I have a bash script and I'm dropping a file on script launcher shortcut. Everything seems fine, only that after executing the script console window closes, so I can't see if some messages were produced during execution.
As I just recently switched from Windows, this kind of problem is solved there by adding 'pause' command in batch script, on which user has to press key and script will then continue (finish) or by launching through 'cmd /k' which makes console window persistent.
Googling I found about 'sleep' command and more appropriate for me 'read' command, so I did this:
Unfortunately, I can't see any effect of 'read' command as console windows again terminates after execution. Execution is successful BTW. So what's the catch?
View 9 Replies
View Related
May 5, 2010
I have some screen questions. First, can you give screens names (such as whatever app you're screening), and second, how do you exit from a screen without closing the app (ie exit screen back to the command prompt, do your thing, then screen -r it)?
View 3 Replies
View Related
May 8, 2011
since I've upgraded to 11.04 on my Dell Latitude E6400, every time I close the lid and open it again, Ubuntu fires up but the screen itself is totally messed up, it's just random patterns all over the screen. The laptop is locked, so I can type in my password, hit enter, and once I'm logged in again the screen is perfectly fine, so the system itself works, only the display is the problem
View 5 Replies
View Related
May 24, 2011
Whenever I use the function hibernate or sleep - or just generally close my lid on my laptop, my laptop displays a black screen when I open the lid again - though it is turned on.
Basically, it hibernates/sleeps the laptop when I close the lid. When I open the lid though, it turns on the laptop, but brings me a black screen.
Code:
View 3 Replies
View Related
Jun 26, 2011
When I close my laptop and open it the screen become grey and blotchy with almost an argyle pattern. This has only started happening after I configured the usb ports to work in my VM. My startup screen also says something about a usb problem, and S for skip and M to manually fix it but I have had no problems with my usb. Oh except for my computer won't start
View 2 Replies
View Related
May 10, 2011
I found an application AUTO POWER ON & SHUTDOWN in windows which is really very useful to those who have night unlimited broadband connection. I searched for similar application in UBUNTU as I am slowly shifting to UBUNTU from 10.04 (maveric) version. Whenever I search for application or for other options, so many have written failed attempts only.
View 5 Replies
View Related
Jun 27, 2011
I want to use myscript.sh to auto-start an application. I put myscript.sh into /etc/init.d/ and run "update-rc.d myscript.sh defaults". After reboot, I can see my application was started (its log file was updated), but I cannot see my application running if I do ps -ef. I suspect it is killed by the OS.
View 4 Replies
View Related
Nov 2, 2009
Can you run an application automatically when you load linux? In this case it would be VMPlayer?
View 4 Replies
View Related
Feb 23, 2011
I have a site [URL] right now what you are seeing is a default Tomcat6 page. I am using mod_ajp as a front end and Apache vhost configuration for same is
Code:
<VirtualHost *:80 >
ServerName mysite.com
ServerAdmin webmaster@localhost
ProxyRequests off
<Proxy *>
Order deny,allow
[Code]....
View 2 Replies
View Related
May 24, 2011
When I open a pdf file (e.g., beamer file) using xpdf, there's an annoying window on the left displaying section headings. Presumably it's possible to close it, ideally toggle it closed and open with a key binding, but I can't find out how to do this.
View 4 Replies
View Related
Aug 28, 2010
When I use the scp command, here is a command prompt "Input password:",Now I want to use a one line command to perform the scp command.I tested the "echo "password" | scp xxx yu@10.xxx.xxx.xxx:/", but failed.
View 2 Replies
View Related
Jan 15, 2010
I've got an annoying problem that 'man' and some other commands do not auto-complete (via TAB). e.g. typing: man rsyn (TAB, TAB, TAB, etc) will not auto-complete to 'man rsync' however, if i 'sudo -s' & then try the above, 'man' auto-completes everytime. (Directories always auto-complete successfully) My ~/.bashrc contains:
Code:
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
[code]....
View 8 Replies
View Related
Mar 26, 2010
I am using Fedora and trying to auto run a script soon after the unit boots to desktop. I found many suggestions and finally decided to use the Sessions->Startup Programs option (under System->Preferences->Personal->Sessions menu). I added my script in the Startup Programs with the command 'sh myscript.sh'. Now I have two questions here:1. When I use the command 'gnome-terminal -e myscript.sh', I get 'There was an error creating the child process for this terminal' message after logging into the desktop. Can any one tell if I am missing something here?2. Even if I use sh instead of gnome-terminal, I still want to see the script executing. In other words, my script has certain echo statements indicating the flow of the script. But I don't see any shell opening up with these echo statements showing up, after the unit boots to desktop. But the script was still executed with no problem
View 1 Replies
View Related
Nov 2, 2010
I am trying to make a bash-script for auto-logins on several hosts, seems there is a problem with the quotes and I can't figure it out. I've experimented with singles and doubles but no luck yet. Below are two variants with respective outputs. In both cases the output of echo works fine if I copy and paste it to a prompt, but when executed from the script it falls down.
* Only one case-clause for testing...
* Not possible to use passwordless key-login
#!/bin/bash
PASSWORD="my_password"
case "$1" in
"example1" ) HOST="example-host-1"
echo $HOST;;
esac
if [ $HOST ]
then
COMMAND="expect -c 'spawn ssh $HOST ; expect assword ; send $PASSWORD
; interact'"
echo $COMMAND
exec $COMMAND
else
echo "No host argument"
fi
View 7 Replies
View Related
Jun 19, 2010
I am trying to write a bast script, and I need the script to add something to the startup applications, so that it runs when the user logs in.
View 2 Replies
View Related
Feb 28, 2010
I'm trying to launch CoverGloobus (a fantastic little album art and current song display) and Rhythmbox simultaneously through a BASH script. Problem is that when I attempt to run the script the first time, CoverGloobus doesn't launch, but Rhythmbox does. Here's my script as it is right now:
Code:
#! /bin/bash
#Opens Rhythmbox and CoverGloobus
rhythmbox && covergloobus
done
I've double-checked the commands in gnome-terminal, and they're the right ones for launching the applications. Here's where it gets odd, though. The second time I run the script, CoverGloobus and Rhythmbox launch simultaneously. I've reproduced this scenario multiple times.
View 2 Replies
View Related
Apr 5, 2011
I want to tweak my linux environment so that when I type a text file name on the command line and hit enter the file should be opened in Vim.
$: /tmp/file.txt
should open the file in Vim. This is similar to what happens on windows (where a text file is opened in notepad.)
View 6 Replies
View Related
Nov 2, 2010
I need to configure xorg.conf or wherever that option is stored to stop Configuring my Desktop at a Huge Resolution i think it's Automatic one . I need to configure a static 800x600 screen resolution ,because @reboot every-time my Ubuntu 9.04 is switching it to a different one .
View 1 Replies
View Related
Feb 6, 2011
I have a fresh install of openSuse 11.3 installed. But after the install the auto reboot nothing happens screen turns off, I restart comp grub came up.
OpenSuse (Default)
Failsafe openSuse
Windows 7
I select default the little gecko loading screen comes up then after 15sec screen goes black screen actually goes into idle mode, button pressing mouse moving nothing effects it. I reboot again select failsafe, text screen comes up going through list everything green, then screen turns black doesn't go into standby just black screen. I reboot try default with nomodeset loading runs same as failsafe except when comes to x-server screen goes black.
I have 2 displays a 18" Dell digital lcd Monitor, and my 26" TFT TV, They are both connected to a Gigabyte Nvidia GeForce 8400 GS, TV with HDMI and Monitor with DVI-I. I have a second 18" Dell LCD Monitor, which I had connected with D-Sub but I couldn't get all 3 working so disconnected second monitor, as i wanted tv over monitor. I had ubuntu 10.10 running before the opensuse 11.3 install it worked fine but i wanted to try suse.
I thought it might have been that I was picking KDE desktop then adding Gnome later in installation, so tried reinstalling default install same problem, tried gnome alone same issue, tried gnome and KDE and same issue. so i put original idea back on KDE and gnome later in install. and im sticking with this until I fix as its the one I want. But if I really have to I will switch back to ubuntu. I have no Linux experience.
View 1 Replies
View Related