Debian :: How To Avoid Closing Console - Bash Script - Window

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


ADVERTISEMENT

Programming :: Avoid Application From Closing If A Specific Library Not Found?

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

General :: Disallow Closing Last Emacs Window Via Window-Manager Close Button

Jul 8, 2011

I like to start Emacs as part of a login script and leave it running for the duration of my login session (which is typically weeks).

I have scripts to call emacs-client which will allow me to use a file-manager or Windows Explorer to locate files and right-click to edit them in Emacs.

I often end up with a lot of emacs windows (frames) open and I like to just be able to close them by clicking on the MS-Windows or KDE X button at the top-right.

The trouble is, if the window is the last one, this will shut down emacs which will lose all kinds of interesting history information.

As a work-around I use C-x 5 0 which won't let me close the last frame but this is often not as convenient as using the mouse

Does anyone know how to configure Emacs so that it can intercept the Window-Close button of the last frame to either request confirmation or simply disallow it?

On MS-Windows, disallowing closing of the last window may cause logoff to hang if emacs is still running but I'm not too worried about that.

View 2 Replies View Related

Software :: Console / Bash Configuration In Debian?

Nov 13, 2010

I'm trying Debian again just for fun after using Slackware for years. When I "su -" on Konsole in Debian I get this for my prompt:
Code:
darksaurian@darkswamp:~$ su -
Password:
darkswamp:~#
darkswamp is my hostname that I made up when I installed. On Slackware I'm used to it saying:
root@darkswamp
or something like that.
I'm starting Konsole the same way on both:
konsole -e $SHELL -l
I kind of wish it still said "root" just because I'm used to it.

View 5 Replies View Related

General :: X Freezes When Closing Window ?

Mar 8, 2010

Since the incedent described in this thread:[url]

X just freezes whenever I close a window, I have to kill X when that happens. For some reason it doesn't do that in TWM, though.

View 14 Replies View Related

CentOS 5 :: Crash When Closing A Window?

Jul 3, 2009

I am using CentOS5.2 and gnome 2.16, sometimes (not very often) when I open something and close it by clicking the CROSS on the top-right corner. The application crash and I lose all control (no keyboard anymore), I have to reboot the system by reset the machine. What's going on?

Yesterday, when I logon as root and run service setup, after I uncheck a sevice in the list and then start it, I click the CROSS on the top-right corner of the window, it popup a window (in the background) to ask me to save it or not, but then I total lose the control, no mouse, no keyboard. I try to reset the machine many times, but everytime when I repeat the same operation, it crash again. Seems that if I don't close it, everything would be fine!!!!

View 17 Replies View Related

Fedora :: Prevent Accidental Closing Of A Window

Jul 12, 2009

I am running a program in gnome-terminal window (using metacity window manager) which will take many hrs to complete.

I was wondering if there is some way to "lock" that window, so that accidental closing of that window is prevented.

View 7 Replies View Related

Ubuntu :: Closing A Nautilus Window Instance ?

Apr 18, 2010

Is there a way to identify and close a given instance of an open nautilus window from a command line?

Or can one identify via a command line that a given instance is open?

I'd like to tag one when it is open with a specific title and then if that is already open not open it again all from the command line.

View 3 Replies View Related

Ubuntu :: Closing A Window With A Fire Effect ?

Aug 4, 2010

So far so good on the compiz effects but I couldn't figure out the fire effect when you close a window in compiz.

I looked everything in the compiz fusion menu but still couldn't find that effect out.. I have every plug-ins I believe in the compiz)

View 9 Replies View Related

Ubuntu :: Compiz Window Effects - Minimizing - Closing

Dec 10, 2010

I've been running Ubuntu on my laptop for a couple months now and I've been using compiz settings manager. For some reason I can't seem to get the window effects for minimizing, closing, etc. to work. I have followed a few tutorials and nothing seems to make any difference. As far as I can tell, that is the only thing in compiz that is not working. I am running Ubuntu 10.10

View 4 Replies View Related

Ubuntu :: Can't See Any Closing ,Minimize,Maximization Buttons On Any Window?

Mar 14, 2011

I cant see any closing ,Minimize,Maximization buttons on any window I had replaced my monitor with other crt am closing by using alt f4 and from file quit now

View 3 Replies View Related

OpenSUSE :: KDE Tends To Freeze Momentarily After Closing A Window - Pressing A Button

Sep 29, 2010

KDE tends to freeze momentarily after performing some tasks, like closing a window, pressing a button that should result in an option pane being popped, or simply trying to drag a window around the desktop. It doesn't happen every single time, but it's very persistently. I first noticed that the mouse would freeze sometimes when I do something like close a window and it takes 3~4 seconds for me to get control back, and for the task that I requested (close a window for instance) to be carried out.

During this time, I notice that all of KDE freezes up because my binary clock widget freezes as well. Is this a known problem with KDE? Can somebody give me some advice as to what might be causing this behaviour? I recall having similar problems back when I first tried 11.0, but back then it was so bad that I ended up going with Gnome. Now KDE has me hooked again, except for this one niggling issue. If I can get this resolved, then I think I will finally have an absolutely stable linux desktop.

[Code]....

View 9 Replies View Related

Ubuntu :: Closing Internet Window - Lost Minimize Maximise ?

Feb 11, 2011

I seem to have lost the closewindow cross from my browser tool bar (which is hugely annoying!) - how do I get it back please?

Ive also lost minimize maximise

if I hit F11 then push the mouse off the top of the screen the whole window moves up and I can see minimize/maximixe/close then.

View 2 Replies View Related

General :: Closing The Section Headings Window On The Left Of The Xpdf Screen?

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

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 View Related

Ubuntu :: Closing 3 Window Bars - Dont Have The Minimize Maximize Or Close Buttons

May 20, 2010

So I have these three bars that I suppose are some kind of left over fragment of windows I had up the last time I rebooted. Anyhow, whenever I boot now, these three bars show on my desktop, and I cant get rid of them, they dont have the minimize, maximize or close buttons. Yet when I click the, "show desktop" buttom, they then minimize. HOwever, they don't show up on my window list. I've tried restarting my xsession and that didnt work, I've restarted nautilus that didn't work, I cant right click on them, I already tried xkill and force quite and that doesnt work. They're just always there.

View 2 Replies View Related

General :: Hide Or Minimize X11 Window From Console?

Sep 9, 2010

Window is full-screen and grabs everything.New windows are appearing behind it.I cannot just kill that application.I'm logged in as root remotely through the SSH.Expecting something like that:

$ xcontrol
> ls
window id: PID: Window class: Window name: ...

[code]....

View 2 Replies View Related

Ubuntu :: Bash Console Is Usable?

Feb 4, 2011

I have inherited an ubuntu system and I'm currently having problems with my console (using putty.)

My bash console is usable but only just barely.

None of the colors are working so I can't tell what it a directory and what isn't. When I hit the up arrow I just get : ^[[A instead of my last statement.

Left arrow: ^[[D
Right arrow: ^[[C
Down arrow: ^[[B

View 6 Replies View Related

OpenSUSE :: Configuring The Concole \ Don't Like The Default Console Window Under Kde?

Jul 20, 2011

I now have Suse 11.4 and I don't like the default console window under kde.In 11.2, I was able to set the font size, line width and no. of lines, and then makethese changes permanent. I can't find anything now other than changingthe font size, and it's not permanent. The console window covers the whole screen,but I sometimes want to drag it smaller, which I can't seem to do now.

View 4 Replies View Related

Ubuntu :: Sh Script Automatically Open Console Window?

May 29, 2011

i have a simple sh script. It executes ok by clicking in dolphin but I would like it to automatically open a console window and execute in there so that I could see the output. Is this possible?

View 2 Replies View Related

General :: Open Some Location In New Tab In Existing Nautilus Window? (from Console)

May 13, 2010

I want to type something in console that will open some location (on example home dir) in already opened nautilus window. Is it possible?

View 1 Replies View Related

Programming :: Console Window Size - Why Ioctl Always Return 0 Width

Jul 1, 2010

I use ioctl to get the console window size (the SSH window). I use the following code:
struct winsize ws;
int returnValue = ioctl(pCommandStructure->terminal, TIOCGWINSZ, &ws);
int numberOfColumnsOfTerminalWindow = ws.ws_col;
When I debug on linux pc, it gives me the correct window width. But after I try it on router (this is my enventual place where my code shall run), ioctl always give me 0 width, that is, numberOfColumnsOfTerminalWindow == 0. but the returnValue is 0 which means that the function call succeeds.

View 2 Replies View Related

Ubuntu :: Won't Boot With Bash - Turn Into Console Mode

Oct 21, 2010

I've got a problem with bash, when I run my terminal or I turn into console mode, I get:

Code:

And I have to type "bash" and after I got:

Code:

How to make that bash alway running?

View 2 Replies View Related

General :: Bash Script Output To Console Without Login?

Dec 30, 2010

i'm looking for a way to output a bash script to the console before login.It should be executed after boot in rc.d scripts with the output on the console0. It is for a asterisk box.This is the script. It use the watch command to output the active calls on the box in realtime.Code:watch "asterisk -vvvvvrx 'show channels verbose'"Btw,

View 6 Replies View Related

General :: Only A Black Background With A Console Window When Start Fvwm-crystal

Mar 4, 2010

I have installed fvwm-crystal successfully but when I try to start it by just adding the codes below to .xinitrc

Code:
exec fvwm-crystal
only a black background with a console window show up.

I also put the .xsession-error here,

Code:
1 /etc/gdm/PreSession/Default: Registering your session with utmp
2 /etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -u /var/run/utmp -x "/var/gdm/:0.Xservers" -h "" -l ":0" "xxx"
3 localuser:xxx being added to access control list
4 Launching a SCIM daemon with Socket FrontEnd...
5 Loading simple Config module ...
[Code]....

View 5 Replies View Related

Slackware :: Rxvt Or Any Other Console Doesn't Make A New Line At Edge Of Window

Aug 17, 2010

I have a slight problem. Whenever I type something in rxvt, and sometimes it's a loooong something, I end up having to make it span multiple lines, as do you, probably. Anyway, my problem is that if I'm in any console at all, (aside from the TTY console and such) and I try to go multiple lines, this is what happens:

Code:

[root@SectionI13] > aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
After the first pass...

Code:

aaaaaaaectionI13] > aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
And after the second pass...

Code:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaa

Now, I'd be fine and dandy with this, if it wasn't so hard to figure out what I was typing after the first pass, because it's just plain hard to understand a command when there's the second half of it in front of the first half of it.

View 5 Replies View Related

Debian :: How To Avoid Unwanted Dependency During .deb Build

Aug 14, 2011

I have successfully build .deb im my box and it is running well. But during the debuild process I got followingdpkg-shlibdeps: warning: dependency on libatk-1.0.so.0 could be avoided if "debian/retrovol/usr/bin/retrovol" were not uselessly linked against it (they use none of its symbols).

dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/retrovol/usr/bin/retrovol" were

[code]....

View 1 Replies View Related

Debian :: Testing Updates To Avoid Breakages?

Jul 13, 2011

I'm new to Debian and GNU/Linux, and I don't know when it is time to update or upgrade Debian, and how to do it in order to avoid breakages

View 4 Replies View Related

Debian :: Avoid Typing Firefox Master Password?

Aug 17, 2011

I have been looking at how to avoid typing my firefox master password. So far no luck.

Do you know of a way to have the master password in a file on a USB stick?

I am also looking for a way to integrate keepassx with firefox. I found passifox at[URL].. It depends on keepasshttp and seems to be a windows thing.

View 2 Replies View Related

Debian Configuration :: Avoid Suspend Of Lid Close Without Login

Jul 20, 2015

So I have this laptop with a busted battery, I'm trying to get it into some kind of headless server, media topbox hybrid.

First thing I want to do is being able to leave it shut (powered on) in the corner without having to interact with it directly.

I've setup ssh and vnc so to login remotely and do task, transfer files and etc.

However there is a little issue with the laptop lid down upon turning it on, it immediately goes into suspend when getting to the display manager, which is 'lightdm'.

I suppose this is the default setting for Xorg and as such my custom configs for KDE only kick in after I login.

Question is: I never seen configuration for default power management stuff being done in Xorg, is there some way to disable automatic suspension on lid down?

Another question is: After the KDE kicks in does it always replace power options? I have setup a xorg.conf file specifying dpms options but these don't seem to remain.

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved