General :: Prevent Evince From Contacting Other Instances?
Jul 23, 2010
Okay, this issue is kinda difficult to understand without context: When we run Evince, it checks if there is any other instance running. If there is one, the evince command exits immediately, right after passing the parameter to the running instance If no other instance is running, a new one will be started, and the evince command will wait until this new instance exits. While that behavior is quite nice, it is not helpful for shell scripts. Why? Because I have a script that writes a temporary .ps file, calls a PS/PDF viewer, and automatically deletes the temporary .ps file after the viewer exits. Unfortunately, this script only works if evince was not previously running (if evince was running, then the file is deleted too fast).
I don't want to add extra complexity to this script. It should be kept simple, because I may want to replace evince with xpdf, gv, or anything else. I was expecting some kind of command-line parameter to evince (similar to -f to vim and gvim), but I fear there is no such option. Writing a wrapper script around evince might be a good solution, but this script should work correctly in all cases (if evince was running and if it wasn't).
View 1 Replies
ADVERTISEMENT
Jun 15, 2011
I have bees assigned a problem which states that :
sendmail-2: Wrong number of instances of process sendmail:, expected instances equal 1 but found 0
THats it...what exactly this means and how should i proceed for solving this problem...
View 1 Replies
View Related
Mar 25, 2011
I have installed some pdf readers on my notebook, and the one I most liked was evince. But there are two available evince packages: evince and evince-gtk. What is the difference between them? Does one of them have advantages as to the other?
View 1 Replies
View Related
Jan 28, 2010
I've had a little package of scripts for a while now and decided to use one that i had not used so far it's calledcheck md5 sum by Tony MattssonWell I used it and it says put name of file I put the name of the iso and for some reason the script turn my 4.06 Gb .iso to a 54k .isoI tried contacting the maker with th email provided but had no luck the email is no longer good or never existed.Please anyone who know's about this kind of thing help as the iso is super important and i need to try and recuperate it.s there anyway to reverse this?Here is a copy of the script.
Code:
#!/bin/bash
# AUTHOR:(c) Tony Mattsson <tony_mattsson@home.se>
[code]....
View 9 Replies
View Related
May 25, 2011
I first installed Fedora 15 (full clean install) on a spare laptop I had sitting around and the install went flawlessly. I was able to install it and use it right out the gate. I was then able to install two of my must-have programs, xchat and libreoffice without any problems either.Then I tried the same thing on my primary desktop at work (and since I run an IT department, I already have permission to do this :-)
The problem I'm getting is trying to install anything;the package manager is having trouble contacting the source.The exact error reads: "Software source download failed. Could not contact source 'fedora', so it will be disabled."I have not made anychanges to the firewall on the machine and the machine does have a working internet connection (I am posting from the machine). Any tips or advice on ways to troubleshoot would be great. I'm by no means a linux expert, but I can get around the system fairly well
View 4 Replies
View Related
Apr 9, 2011
I have Evince installed, as can be seen in Synaptic but can't see it in Applications, nor can invoke it as an option to open files. Initially I had Evince working, but changed to Okular. Since then, I did not see Evince in my Netbook. I want to have the Evince option. I installed Evince related packages from the Ubuntu 10.04 Repository, but nothing new appears in Applications or System.
View 3 Replies
View Related
Jun 14, 2010
I find this command
sudo update-alternatives -config x-www-browser
I choose Chrome. It works for xpdf, but Evince still starts Firefox after click. I feel Linux is not standard. I use Linux Mint 8 (Helena) LXDE.
View 2 Replies
View Related
Oct 28, 2010
I have a cron job that executes a rake task in rails. I noticed in the log that it was running the task 4 times everytime it was executed. The problem is that there are 4 instances of cron running.
I ran code...
So my question is how do I stop the other instances. When I run the stop command now I get this:
Stopping crond: cannot stop crond: crond is not running. [FAILED]
Any ideas? Do the other instances have different names? Is there a way to kill all instances as once?
View 2 Replies
View Related
Feb 23, 2011
In windows xp, i created another user account. Now i can run a second instance of any program by right clicking on it and selecting Run as. Is such a thing possible in linux (centos or ubuntu) in graphical environment ?
View 4 Replies
View Related
Apr 14, 2010
I had some problems with printing pdf on my HP 1020 (it was printing only text, but not figures or pictures). After reinstalling a few times, I realised that problem was not the driver, but the type of pdf format. Some pdf creator (like>cairo, or some creators for Windows) has format which can not be parsed on Ubuntu. Workaround is to 'print to a file' (postscript), save it somewhere and then print that new postscript document.
View 2 Replies
View Related
Mar 31, 2010
How can I have multiple independent instances of Mozilla Firefox 3.5 on the same X server, but started from different user accounts (consequently, different profiles)?
Limited success was only with Xephyr :1, DISPLAY=:1 /usr/local/bin/firefox, but Xephyr has no Cygwin/X's "rootless" mode so it's not comfortable (see other question).
The idea is to have one Firefox instance for various "Serious Business" things and the other for regular browsing with dozens of add-ons securely isolated.
View 2 Replies
View Related
May 4, 2010
On Windows If I run Firefox as user jack, and then try to start another instance of firefox I will be unable to, as one is already running.If I choose to run firefox as administrator,then I can have two instances of firefox, separate from each other side by side, because they are under different user accounts.This does not seem to be true on Linux.As user jack if I start firefox, like on windows I am unable to start a new instance.If I open a terminal and change to root, set XAUTHORITY to jacks .Xauthority and try to start firefox as root....I get the error that firefox is already running.
View 1 Replies
View Related
Jun 22, 2011
I'm using Ubuntu 11.04. What command can I run that will shut down all Firefox instances?Here's what I get when I scan for processes with "firefox" included in them
Code:
$ ps -elf | grep firefox
0 R selenium 31849 1253 32 80 0 - 186593 - 14:08 ? 00:00:05 /usr/lib/firefox-4.0.1/firefox-bin -profile /tmp/customProfileDir85da96184657425da4ec1b05d75e7523
0 S selenium 31892 31849 0 80 0 - 53633 poll_s 14:08 ? 00:00:00 /usr/lib/firefox-4.0.1/plugin-container /var/lib/flashplugin-installer/npwrapper.libflashplayer.so -omnijar /usr/lib/firefox-4.0.1/omni.jar 31849 true plugin
View 3 Replies
View Related
Feb 1, 2010
I have a line of text with multiple web links in the line. I'd like to replace the actual links with the text "<web-link>" so I don't accidentally hit them while reading on my iphone. I've tried many versions of the following sed command, sed 's/(http.*)/<web_link>/g', but it simply replaces everything between the first instance of "(http" and the last instance of ")" with <web_link>, or does nothing at all.
Ex: This line has a link to a web page (http://www.webpage.com/file.html) then some more text (extra text) and then another link (http://www.nextwebpage.com.index.html) to a website.
$ echo "This line has a link to a web page (http://www.webpage.com/file.html) then some more text (extra text) and then another link (http://www.nextwebpage.com.index.html) to a website." | sed 's/(http.*)/<web_link>/g'
What I get is: This line has a link to a web page <web_link> to a website.
What I'd like is: This line has a link to a web page <web_link> then some more text (extra text) and then another link <web_link> to a website.
What am I doing wrong with my sed command?
View 4 Replies
View Related
Sep 20, 2010
I need to run multiple squid instances on my server , I am running squid version squid-2.7.STABLE5-1.el4 on RHEL 4.7 , kindly tell me how to do so. by the way , I need to run two instance because i need to configure my proxy to act as a reverse proxy and a forward proxy, and people told me that you cannot run a forward and reverse proxy on the same instance.
View 4 Replies
View Related
Apr 2, 2011
I have to run multiple instances of apache on the same physical machine, as we have different OAM policies for different domains.is in the httpd.conf file can I have ServerName same in two instances of apache, like
ServerName: prod_machine (actual machine name)
In the vhconf files I do have different servernames for virtual hosts. Apache instances are running on same IP but different ports. I am including various vhost files in the main httpd.conf file. Can I skip servername in the main httpd.conf file and include different servernames in the virutal hosts configs. OS: Solaris10
View 1 Replies
View Related
Feb 17, 2010
If i have, say, ..... tab opened and if a click on some of the related videos (while it's still playing) firefox terminates. The same if I open ..... on one tab and myspace on another - firefox just shuts down.
I want to know why this happens, is it a bug and how can i fix it ?
View 2 Replies
View Related
Sep 27, 2010
I have a machine with 8 cores. I have a directory of input files that I need to process using a non-parallelized program. I would like to write a script that works its way through a list of commands executing 8 commans (i.e., instances of this program; each with specific flags having to do with the current input file) until the list of commands has been exhausted. Is there an easy way to do this?
Code:
hamstrsearch_local-hmmer3.pl -protein -refspec=lotgi_2713 -hmmset=lophotrochozoa_hmmer3 -sequence_file=Aplysia_californica.fas -taxon=ACAL
View 3 Replies
View Related
Apr 6, 2010
Actually I'm not sure that it's swapping like mad: I've done more testing and it looks like there may some interference causing the noise that may be correlating with network usage. I'm accessing a MacMini (with MacOS X 10.4) from my Linux machine using VNC. My Linux machine has 4 GB of ram and I run a lot of various apps on it and I've got no issue at all. It's all snappy and don't hear the hard disk swapping/read/writing too often. Now with VNC, the hard disk is swapping like mad. When I'm moving things on the OS X desktop. So I was thinking of creating a ramdisk and forcing the temp VNC files to go into that ramdisk but the problem is I can't find any temp files.
I've attempted to do that:
#!/bin/bash
while [ true ]
do
lsof | grep vnc
done
The VNC version I'm using is this one:
$ vncviewer -version
VNC Viewer Free Edition 4.1.1 for X - built Jan 30 2009 19:33:16
Copyright (C) 2002-2005 RealVNC Ltd.
No matter how much data is coming from the Mac, there should be plenty of memory (4 GB of ram) so there's really no reason to swap like crazy.
View 1 Replies
View Related
Jan 9, 2010
My linux prevent CDs autorun! i wanna know what to do?
View 1 Replies
View Related
Jul 11, 2010
I'm currently copying a large number of files over a network. To monitor progress, I tried running watch du. However, the output never changed (or not much, not sure). find . -type f | wc -l always gives me the same number of files as does ls -R. It seems, these programs use caching, which is, in general, a good thing. Does anyone know, though, how cache usage could be controlled? I'm on an Archlinux system and I'm working on an ext4 fs on an encrypted hd.
View 4 Replies
View Related
Jan 28, 2011
How to change this sequence to, for example "Ctrl+Fn+F1" or temporarily disable it?@related: How to send Ctrl+Alt+F1 to window (to switch terminal remotely, not locally)?
View 1 Replies
View Related
Mar 17, 2011
I am running a shell script from a rc file in Linux. The shell script is going into a loop which runs for 8 hours. Now I want to prevent the shell script from running when Linux boots or I need to find a way to kill the shell script when it is running. I tried using killall, kill $! and Ctrl+C etc. Nothing seems to work. Can you suggest a way out. I am new to Linux.
View 2 Replies
View Related
Jul 7, 2011
I have synergyc process that starts at boot. How do I prevent this process from starting? I've searched /etc, /etc/init.d for some configs or scripts but found nothing.
View 2 Replies
View Related
Jul 30, 2011
I want2 know that how stop move folder on samba share.
View 1 Replies
View Related
Apr 22, 2010
I hacked together this script to rsync some files over ssh. The --remove-source-files option of rsync seems to remove the files it transfers, which is what I want. However, I also want the directories those files are placed in to be gone as well. The current part of the find command, -exec rmdir -p {} ; tries to remove the parent directory (in this case, /srv/torrents), but fails because it doesn't have the right permissions. What I'd like to do is stop rmdir from traversing above the directory find is run in, or find another solution to get rid of all the empty folders. I've thought of using some kind of loop with find and running rmdir without the -p switch, but I thought it wouldn't work out. Essentially, is there an alternative way to remove all the empty directories under the parent directory?
[code]....
View 2 Replies
View Related
May 17, 2010
I just read the Linux scp command issue question and it reminded me that I regularily forget to specify the colon in the host part of a scp command, and thus copying a file locally instead of copying to a remote host, e.g. I do
scp foo host
instead of
scp foo host:
But I never use scp to copy a file locally. So I wonder if there is a way to make scp fail if both (the source and destination) arguments refer to local files.
View 1 Replies
View Related
Feb 9, 2011
Is it possible to prevent a specific program (i.e. rhythmbox and its dependencies) from ever swapping to disk?I'm asking because I have a problem when a music player hiccups whenever Chromium hogs too much memory. Is there a way to work around this? This isn't a problem in Windows anymore so presumably there is a way.
View 3 Replies
View Related
Jun 20, 2011
If I copy text into the xterm clipboard from vim, it is cleared when I exit vim. How do I prevent this?
View 1 Replies
View Related
Jan 10, 2011
I want to prevent "^C" from echoing when Ctrl-C is pressed. I did "stty -echoctl" which some googling results suggested. Now it echos raw Ctrl-C characters instead of the string "^C". That's not any better since it displays some funny blocked hexadecimal in the terminal window.
View 8 Replies
View Related