General :: Alternatives For The Ulimit Command?

May 26, 2010

I want to call/run an .exe file from a perl file as so:

Code:

my $cmd=`runner.exe`;

I want to limit the time I want it to run (say 20 seconds).

ulimit should do it as so:

Code:

my $cmd=`ulimit -t 20; runner.exe`;

but I get this:

Quote:

sh: line 0: ulimit: cpu time: cannot modify limit: Operation not permitted

any alternatives that can do the same thing as ulimit? even if it's just for this one process (runner.exe)

View 5 Replies


ADVERTISEMENT

Software :: Ulimit -s 40960 Versus Ulimit Ulimit -s 10240

Jan 20, 2011

I wrote this because i was able to use openmpi to run mpirun on my 12-core workstation rather happily since day 1 I setup the system a few months ago. Yesterday when I tried to run a big job under mpirun, the job crashed rather quickly, the error message was something like mpirun process exited blah blah with signal 11 (Segmentation fault). Interestingly (or annoyingly) a job required less memory ran okay.

Since I never had this problem before, I thought it was the hardware failure. I called my IT guy to explain the problem and he is kind
enough to suggest to put a line

ulimit -s 40960

in my .bashrc. And it works! But I have no clue why mpirun misbehaves out of a sudden, and that ulimit setting solves the problem completely. I would like to learn from this incident.

View 1 Replies View Related

General :: Can Not Change 'ulimit -n'

Aug 23, 2010

I want to change number of open files. I can not change it neither in user nor sudo modes.

View 9 Replies View Related

General :: How To Set Ulimit Values As Default

Mar 18, 2010

I need to set ulimit values according to
I used
Code:
ulimit -c unlimited
ulimit -s unlimited
ulimit -u unlimited
But after I log again to my session values are set to default. Now can I set this values so they don't change after log out of after reboot?

View 2 Replies View Related

General :: Ulimit To Set The Time Of Login?

Mar 11, 2010

Is it possible to set a user to login only during 3rd week of every month using ulimit ?

I searched in man page of ulimit. Turned out with no luck.

If its not possible by ulimit, is there any other way to accomplish this ?

View 3 Replies View Related

General :: Change The SIGNAL Done When Ulimit Is Reached?

Mar 30, 2011

I would like to use ulimit -St <some number> to stop a process form running once the process has exceeded the amount of CPU time specified in the ulimt arg.

I have been able to get ulimit -t (or -Ht) to kill my process, but I need the signal to be something other than 9 and other than SIGXCPU.

Is there a way to have ulimit issue a kill -<somthing else> when the cpu time specified has been exceeded?

View 1 Replies View Related

General :: What Alternatives To SSH Do GNU Users Use

Aug 23, 2010

I have heard that SSH was originally for BSD. Is this correct? And what alternatives to SSH do GNU users use? Or do people just not use GNU for SSH or an SSH type application?

View 2 Replies View Related

General :: Alternatives To Citrix GoToAssist?

Jun 3, 2010

What's the best Remote Desktop Application? Citrix GoToAssist is a really nifty little web application for customer support that allows you to take control of someones OSX, or Windows machine. Essentially, it works likes this:

You log in to your management console You get a code You give them a code, and a website (fastsupport.com) They go there and enter in the code They accept the browser applet which installs a program on their computer You have control of their desktop

You can see their desktop, configure applications, etc. They can also see when you disconnect. It is really rather nifty, but it doesn't support Linux and it is rather expensive (660$ a year). Does anyone know of any alternatives to this? I'm looking for a solution as simple on the user as this one, that doesn't require firewall configuration or setting up ssh/vnc/rdesktop etc.

View 2 Replies View Related

General :: How Does The Etc/alternatives System Work

Jan 17, 2010

I've been a Java developer for some time now and I always wind up removing a bunch of stuff from /etc/alternatives in favor of one of several freshly downloaded official Sun JDKs I've installed myself. I don't like circumventing things unnecessarily, though and I also don't like "re-inventing the wheel", either. If I had a better idea of how that system worked, perhaps it would not be required. I mean I usually write a script to switch between jdk's for different projects but perhaps I would not need a script if I knew how this worked

View 4 Replies View Related

General :: What Are The Alternatives To Knotify For Slackware64 13.1

Dec 16, 2010

if there were any alternatives to knotify. in running xfce and i was hoping to get gnotify(thats what ubuntu uses right??) or any other alternative works.

View 2 Replies View Related

General :: Lightweight PDF Alternatives That Support Tabs?

Jul 20, 2010

Adobe Reader is the best, but it's so resource heavy. It takes almost 10% of my 8GB ram. Evince has trouble with highlighting text and does not support tabs. Foxit Reader for Linux does not support tabs. Any assistance in choosing an appropriate PDF viewer that supports these features on Linux and isn't too resource intensive?

View 2 Replies View Related

General :: Finding Alternatives In Fedora For Deskshell?

Feb 18, 2010

Is any alternative for (deskshell(XC) -- syntax and control constructs of the Deskshell command language) in fedora.It was using in sco unix.

View 2 Replies View Related

General :: Java Jre-6u22 Not Listed In Alternatives?

Nov 26, 2010

I have the following in /usr/java :

[root@jonas java]# ls -l
total 40668
lrwxrwxrwx. 1 root root 16 2010-11-26 15:45 default -> /usr/java/latest
drwxr-xr-x. 7 root root 4096 2010-11-26 15:44 jre1.6.0_22
-rw-r--r--. 1 root root 20946625 2010-09-15 12:42 jre-6u22-linux-i586.rpm

[Code].....

Enter to keep the current selection[+], or type selection number:

How can I run java jre-6u22 ?

View 3 Replies View Related

Server :: Ulimit Does Not Seem To Be Working

Mar 22, 2010

We are using a hadoop server & we dont want the server memory to overload. So, I have set the ulimit for max memory size and for some time it was working fine but memory was overloading before EOD. I came to know about soft & hard limits and set the hard limit for the maximum memory size in /etc/security/limits.conf file. But, the limits were not shown in ulimit -a command ouput. So, I restarted the server. Then, the limit was shown in the ulimit command output. But, memory is still getting overloaded as you can see the memory used is more than the limit set. Anyone kndly suggest me on this issue.

[menon@265430-vm1 ~]$ top
top - 09:55:30 up 5:37, 1 user, load average: 0.04, 0.03, 0.00
Tasks: 117 total, 1 running, 116 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 0.7%sy, 0.0%ni, 99.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st

[code]....

View 15 Replies View Related

Fedora :: Can't Set Max Stack With Ulimit In Rc.local

Jul 4, 2011

I'd like to set the max stack size at boot time, preferably as early as possible. I had thought there's a kernel parameter for this, but I cannot find any reference to one.Adding "ulimit -s" to rc.sysinit was not effective; I've grepped /etc/init.d but it is not used subsequently. So what I currently have is my default runlevel set to 1, with no services except udev-post, then in rc.local:

Code:

ulimit -s 1024
telinit 3

3 being my normal runlevel with all necessary services. However, again that ulimit is being ignored, because after login it is still set to 8192. If after login I manually set the limit and change from 3 to 1 and back again (to restart all services), everything is copacetic.

Does anyone know why ulimit -s is ineffective prior to login or how I can set the max stack size at boot time? I'm just noticing that under "upstart" runlevel services are not controlled by rc.d content. Preuming:

#1 My desire to make F14 work without upstart, using ye olde sysinitv which weren't broke so I don't need it fixed, is going to be like p'sing up a rope.

#2 That systemd is replacing upstart so I might as well try to learn about that.

how can I get "rc.local" functionality under systemd?

View 1 Replies View Related

General :: Produce A List Of Opensource Alternatives To Blackboard And Webct

Jun 24, 2010

I'm trying to produce a list of opensource alternatives to Blackboard and webct EDIT: please provide user experience and recommendation. I'm not looking for a google search on the products out there; rather, I was wondering about your personal input

View 3 Replies View Related

Programming :: How To Extract Output Ulimit Under Popen

Jan 30, 2011

A strange question, I guess. I'm running processes called from a c main program. The calling is performed (for now) as: FILE * res=popen(ulimit -t 1; prg args); So I can read the stdout of the process as a file and analyze it. The time limit is important for me.

2 questions:
1. How do I get to know if the process terminated on its own or by the ulimit?
2. How do I limit to times that are less than 1 sec (I have many of those).

I know that setrlimit exists, just before I change my whole approach I wanted to see if I can deal with these things from the outside.

View 2 Replies View Related

CentOS 5 Server :: Set Ulimit Open Files Permanently?

May 4, 2011

Newbie here! Our website CMS is a Tomcat webapp, which runs on a CentOS 5.6 release (Final). The webapp needs a permanent increase of the max. open files value. Currently, the site is "crashing" frequently due to continuous "Too many open files" exceptions that eventually will occur when traffic increases.

This is what I've done to try to increase the max. open files value code...

But still, when I log in (as any user, incl. root), ulimit -n shows 1024, not 16384. Am I missing something here? And, more importantly; Will Tomcat be able to open > 1024 files after my changes mentioned above?

(PS: I also tried rebooting, but no difference.)

View 1 Replies View Related

Fedora :: Bash - Ulimit: Core File Size - Can't Modify Limit: Operation Not Permitted?

Dec 7, 2009

Fedora 12 gcc 4.4.1 I am doing some programming, and my program gave me a stack dump. However, there is no core file for me to examine.

So I did:
Code:
ulimit -c unlimited
and got this error message:

Code:
bash: ulimit: core file size: cannot modify limit: Operation not permitted I also tried setting ulimit to 50000 and still got the same error. The results of ulimit -a:

Code:
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited

[Code]...

View 3 Replies View Related

General :: Alternatives To "Distrowatch" Where The Various Distributions Are Responsibly And Unbiasly Discussed?

Dec 24, 2010

I was wondering if there are alternatives to "Distrowatch" where the various linux distributions are responsibly and unbiasly discussed?

View 7 Replies View Related

Ubuntu :: Any Alternatives To Pan?

Nov 14, 2010

I am having with Pan and can't seem to get any love. I'm ready to just scrap Pan but I can't find an alternative.Does anyone know of anything similar that, you know, actually works?

View 5 Replies View Related

Software :: Getting The Alternatives To OO.o?

Sep 8, 2010

Oracle has left a bad taste in my mouth as of late, and I'm looking to remove any software affiliated with them from my machine. I haven't had any problems in terms of finding replacements until I came to OpenOffice, of which I have been a user for years.

I am aware of the existence of Gnome Office and KOffice and have been tinkering with both, but I am curious as to whether or not anyone here on LQ has found a more suitable replacement.Here's hoping someone forks OO.o before Oracle pulls another stunt.

View 14 Replies View Related

Fedora :: F15 Gnome3 Alternatives?

Jun 24, 2011

F15 running on my Dell Latitude 505 laptop. During installation (last week) I got "Gnome3 not fully supported - using fallback mode". I found out later that my Intel 855 video doesn't support 3D, which Gnome3 requires.

System seems to run fine and boots into fallback video. But I'd sure like to have access to my "desktop" so I can drag and drop folders, etc. there. Currently I now have to open the Desktop folder, and then drag and drop, etc. And without an "active" desktop screen, added devices (external drives, cameras, etc.) don't show up unless I open the Desktop folder. Is there an alternative to Gnome3 I can install? I assume without the need for 3D which my Intel video 855 doesn't support.

If there's an alternative or two, could someone point me to exactly how to install them? If there's a more appropriate forum here for this request,

View 14 Replies View Related

Ubuntu :: Alternatives To X11 For System?

Aug 31, 2010

So, are there any alternatives to X for Linux? I often hear about other DEs that run on X11 or X, but I have read here and there that there are some alternatives that have picked up a little steam lately, but I know absolutely nothing about them.

What are these alternatives and how would you go about trying them? Are there any live distros that use anything but X?

View 8 Replies View Related

Slackware :: Any Alternatives For KDE Applications?

Jun 7, 2011

If Slackware didn't include KDE:
1) Which KDE apps would you miss?
2) Which alternatives for these apps would you suggest?
Proposing GNOME apps instead is considered bad practice, as there is no sign of GNOME being re-included in Slackware in a foreseeable future.

View 14 Replies View Related

Ubuntu :: Finding The Alternatives To Nautilus?

Feb 10, 2010

if there were any (better?) alternatives to Nautilus.

View 9 Replies View Related

Ubuntu :: ConvertXtoDvd & VirtualDub Alternatives?

Aug 19, 2010

I'm completely new to Ubuntu and recently installed Ubuntu 10.4 and looking for linux equivelants of the programmes in the title?

View 1 Replies View Related

Ubuntu :: Are There Other Alternatives For Panel / Dock

Mar 6, 2011

Are there other alternatives for panel/dock in ubuntu.? I'm bored with docks providing Mac feel or ubuntu panels. Is there a way i can replace my panels with something like shown in this video: URL...

View 1 Replies View Related

Ubuntu :: Any Secure Alternatives To Skype?

Mar 20, 2011

The first need is to have easy cross system compatibility. Meaning Windows included. Audio/Video would be a plus, but it is not a must. I need something that goes through SSL or something like that and not in plain view.

View 9 Replies View Related

Ubuntu :: Finding The Alternatives For Brasero?

May 29, 2011

I'm planning to begin using K3B to burn backup data DVDs. Brasero kinda disappoints as burning software. It can't verify the data after a burn. It only offers the maximum burn speed. It doesn't off options like Disk At Once and Track At Once. K3B is oriented towards KDE. Are there any other GNOME burning choices than Brasero?

View 9 Replies View Related







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