Ubuntu :: What Are Exit Handlers

May 1, 2010

What are exit handlers ? They are piece of code to execute prior to exit() ?

View 3 Replies


ADVERTISEMENT

Programming :: Exit In Script Files Cause Konsole Terminal Itself To Exit?

Apr 11, 2010

I noticed that if I have "exit" in a bash script file., e.g. script.sh,that when the word "exit" is reached, and the script file being executed is not in the PATH nvironment, i.e. ". script.sh", the whole konsole shell profile is exited! What gives here? Is there another command compatible to "exit" to prevent this, or will I just have the leave the "." part in the PATH enviroment, which is, to my understanding, is not recommended? I desire for a "goto" function in bash script files

View 11 Replies View Related

Programming :: Why New Threads Exit When Main Thread Exit

May 22, 2010

In linux, creating thread is same as process (clone()), except the virtual address space gets shared with the parent.If a running main process(thread) creates new thread, and if main thread exits, why should the new thread too exit? both are different entities, The same doesn't happen if the child thread exits, the parent thread would be alive.

View 1 Replies View Related

Ubuntu :: Custom Url-handlers Fails To Register In Browsers

May 4, 2011

Operating System: Ubuntu 11.04 w/ Unity-2D

I had serveral custom url-handlers setup using gconftool-2 in my old Ubuntu 10.10 setup, but now after reinstalling and updating to Ubuntu 11.04 I can't get a single one to work with Chrome (11.0.696.57) nor other browsers like Midori.

The only solution was to switch to Firefox and setup them manually using network.protocol-handler*

It seems (on the surface) that Chrome insists on opening the links with xdg-open (and if I remember correctly in Ubuntu 10.10 Chrome said it opened the links using the apps set in gconf), but xdg-open only supports the most common http* and ftp* does it not? - Just learned that xdg-open is the default handler for all urls.

I've tried everything, including searching through Chrome's config files, reinstalling Chrome, and tested changing the paths to my apps - but without any luck.

Note that I'm talking about links in Google Chrome, Firefox on the other hand doesn't even check the url-handlers so I had to set them up manually using about:config > network.protocol-handler*

So they work in Firefox when added, but in no other browsers.

Google Chrome opens the links with xdg-open [url] as depicted in the attacheds screenshot, but this throws in error, found in .xsession-errors:

Code:
gvfs-open: svtrip://example.com/: error opening location: The specified location is not supported

View 2 Replies View Related

OpenSUSE :: Apache Redirect - Handlers ?

Nov 5, 2010

The previous version of one of my websites was static and so the URLs looked like this: [url]

A few months ago I re-did the site to be completely dynamic. There are no individual pages for product reviews, just one which pulls the right data from a database. So now, my URLs look like this: [url]

Some fellow ex-googler who specialize in SEO told me that the previous URL scheme was better for search engines because it had the product name. Of course, I have set up redirects from the old naming scheme to the new one but what I would like to do is have 'review.php' handle the request for 'review_XXXX_YYYY.php' without actually doing a redirect... and do this for past and future products. I don't want to have to actually create all these 'review_XXXX_YYYY.php', there would be hundreds, just make it seem like they exist to visitors.

View 7 Replies View Related

Networking :: Use Static Thread Handlers ?

Jun 29, 2010

Can we use static thread handlers ?

View 1 Replies View Related

Networking :: Event Handlers Not Working In Nagios

Feb 8, 2011

I have placed the restart-ssh script in /usr/local/nagios/libexec/eventhandler but its not working on seeing the event log the following information is obtained

Though i have checked the script manually by the following command

It works fine with both of the above mentioned commands

I don't know why it is not able to restart ssh when nagios is calling it as event handler

The service definition for ssh in localhost.cfg is as follow:

View 1 Replies View Related

Slackware :: File Type Handlers In Firefox

Jul 16, 2011

I like to set firefox to ask me every time what to do when downloading a file. This works well if I want to save to disk, but if I want to use an application I don't get a dropdown with applications to choose, but a browse button which requires the application to be typed every time. To make it a bit clearer, if I have clicked on a pdf file I get this: [URL]. How do I get okular listed in a dropdown instead of the browse button?

View 14 Replies View Related

Red Hat / Fedora :: Find Signal Handlers Definitions In Kernel?

Apr 9, 2011

I am currently working on "Creation of Postmortem data logger in Linux on Intel architecture. Its nothing but core utility creation. how the signal handlers for various signals(SIGSEGV,SIGABRT,SIGFPE etc) which produce core dump upon crashing an application internally implemented in Linux kernel. I need to re-write these signal handlers with my own user specific needs and rebuild the kernel. It makes my kernel producing the core file (upon crashing an application) with user specific needs like showing registers,stackdump and backtrace etc.

View 1 Replies View Related

Software :: Shutdown VMs On ESX Server Through Nagios Event Handlers?

Sep 14, 2010

I would need a lead on how to shutdown several virtual machine on our ESX server. We put in place a UPS and now we want to implement a automatic shutdown of the VMs (in a certain order) when our UPS battery goes under the threshold. I do monitor already the battery state. So I just need to put in place the eventhandler. How to proceed?

View 1 Replies View Related

Programming :: About Writing Device Drivers - Interrupt Handlers ?

Apr 28, 2010

I have written interrupt handlers for a keyboard as well as the serial port RS232.

I have seen the book written by O'Reilly w.r.t the device drivers.

I wanted to know *exactly* what parts of Linux kernel should i understand well for having a crystal clear view of writing any kind of device driver ?

View 1 Replies View Related

Ubuntu :: How To Exit X Server With 9.10

Mar 18, 2010

I was wondering how you exited x server in ubuntu. I relatively new to linux. I wanted to install the newest nvidia driver, and they said you needed to exit x server when running the driver installer. Someone already told me to try ctrl-alt- F6, which didn't work. That just put me in a virtual terminal that still had x-server running. So if anyone knows how to exit x-server,

View 1 Replies View Related

Ubuntu :: Cannot Exit TTY Even With Ctrl+Alt+F7 On 10.10

Nov 29, 2010

Here I was, having problems with the resolution then I stopped the X server as was instructed at the tutorial. I followed it all then rebooted. But I found that even after reboot, I'm still stuck with TTY. I clicked Ctrl Alt F7 but still it's a terminal and it did not return to the GUI or the normal desktop. What will I do to exit it? It's a good thing I have windows vista along with it or else I'll now have a computer that I can't use outside the terminal.

As nothingspecial said, I should place the link of the tutorial I was following: [URL]

View 4 Replies View Related

Ubuntu :: Vlc(1.1.7) Is Crashing On Exit?

Mar 3, 2011

i have upgraded vlc 1.1.4 to 1.1.7....but im having a problem regarding the 1.1.7 version. the vlc(1.1.7) is crashing on exit.

View 1 Replies View Related

Ubuntu :: Error Exit Status 2 - What To Do

Apr 23, 2010

I was installing SMPLAYER when the power failed...now i get this error message when trying to re-install the packages..

E: liblzo2-2: subprocess installed post-installation script returned error exit status 2
E: mplayer-nogui: dependency problems - leaving unconfigured
E: mplayer: dependency problems - leaving unconfigured

[code]....

View 3 Replies View Related

Ubuntu :: How To Exit From Screen Without Closing App

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

Ubuntu :: 10.10 Does Not Detect Headphone Exit?

Oct 29, 2010

I have a Toshiba L650 18-C. I've just installed Ubuntu 10.10 without problems. I've made the update and everything was working just fine until i discovered that my headphone exit does not produce any sound: When i connect external speakers or headphones the ubuntu keeps playing music on his netbook speakers...How can i solve this problem? Is it possible that Ubuntu did not install the drivers of that Sound Output?I appreciate your answers because this problem is a little bit 'annoying'

View 4 Replies View Related

Ubuntu :: LMMS Doesn't Exit Properly?

Jan 10, 2010

Whenever i close LMMS, it's still running in the background until i kill the process. How can i get it to exit normally?

View 2 Replies View Related

Ubuntu :: Where Is Located The 'exit' Executable File

Jul 17, 2010

When you press exit the gnome-terminal exits.. where is the exit file located? (It isn't at /bin or /sbin or /usr/bin or/usr/sbin )

View 2 Replies View Related

Ubuntu :: How To Save And Exit Root Mode

Aug 16, 2010

I've re-set my password in recovery mode: now how do I save my changes and exit to a normal boot up ie to my desktop? Right now my screen shows "username@Username-desktop:~$"
I've also done a sudo apt-get updates and sudo apt-get desktop for good measure. But how do I get out? If I force quit the change is not saved and I cannot log on.

View 3 Replies View Related

Ubuntu Multimedia :: Xbmc Freezes On Exit?

Nov 3, 2010

xbmc freezes on exit and using 10.10

View 2 Replies View Related

Ubuntu :: Collect2: Ld Returned 1 Exit Status

Jan 26, 2011

I'm getting the following output when trying to compile my cpp project:

Code:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/walther/NetBeansProjects/CppPlay'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/cppplay

[Code].....

I've seen you guys replying to others about this collect2 error, but all of them had some kind of informative message from the compiler.

View 1 Replies View Related

Ubuntu :: Evolution Won't Empty Trash On Exit?

Feb 10, 2011

Evolution 2.28.3 on Ubuntu 10.04 won't empty trash on exit even though this is specified in preferences. Neither will it expunge with right click on trash -> empty trash..e.Close Evolution and open your file browser. Go to /home/put-your-ubuntu-login-name-here/.evolution/mail/localThere are 2 files (Junk.cmeta and Trash.cmeta). I deleted the Trash.cmeta file and opened Evolution again.When you reopen Evolution, it creates a new Trash.cmeta file.

View 4 Replies View Related

Ubuntu :: Can't Find Exit Buttin On Firefox

Feb 26, 2011

i got the effects to work but when i enable the i cant move my windoes around i cant find the buttin on firefox like the exit and stuff.

View 4 Replies View Related

Ubuntu :: Exit GDM To CLI Under VMWare ESXi Console?

Apr 26, 2011

run VMWare ESXi and have installed Ubuntu 10.10 in a virtual machine.People say you press CRTL+ALT+F1 to exit back to command line from the gnome login screen but this never works for me.If I do something like "sudo service gdm stop" it just delivers me to the desktop background almost like the machine has hung, no menus toolbars, mouse or anything.Basically what I want to be able to do is start up the machine with command line, and go into gnome on occasion and exit back out to command line to save resources, this is because the machine will mainly serve as a web server. I followed the guide here [URL] which tells how to make ubuntu always start at CLI, which works nicely, but I need a way to be able to get back to CLI from inside gnome.

View 3 Replies View Related

Ubuntu Installation :: Trying To Do Update And Getting 'apt-get Waiting To Exit'

May 2, 2011

trying to do an update and getting "apt-get waiting to exit" is there any fix for this?

View 1 Replies View Related

Ubuntu Installation :: Fsck Exit With Status 3

May 7, 2011

Can't boot into Ubuntu. Using recovery mode, I get fsck exit with status 3 error. I did man on fsck and there is no reference to status 3. Same issue as [URL]

I have my data on sdb3 which is having this issue. File system is ext4. I can't go into shell or anything, I get the fsck error and the system reboots right away and stuck in that loop.

View 5 Replies View Related

Ubuntu :: Collect2: Ld Returned 1 Exit Status In Cpp Project?

Apr 4, 2010

I am making a project learning about inheritance and polymorphism

it consists of
Account.h
Account.cpp

[code]....

View 2 Replies View Related

Ubuntu :: Proto Not Found Error And Exit Status 127?

May 4, 2010

I'm running Ubuntu 9.10 Karmic and XBMC Live.I get error messages which seem to relate to openvpn.So I tried to remove it with the remove command. This is what I getQuote:

@XBMCLive:/home$ sudo apt-get remove openvpn
Reading package lists... Done
Building dependency tree

[code]....

View 1 Replies View Related

Ubuntu Installation :: Backuppc Error Exit Status 1?

Jun 28, 2010

"E: backuppc: subprocess installed post-installation script returned error exit status 1"whenever I upgrade my system I get the above message Anyone know how to fix it? or if it's anything important ?

View 1 Replies View Related







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