General :: Configure A Process To Be Launched In The "n"th Working Day?
Sep 23, 2010
Is there a way to configure a process to be launched in the "n"th working day?
Let's say n=5. In this case, if the 5th of the month is on Saturday, then the 5th working day will be on Monday so I would like to launch the process on the 7th.
The same when the 5th of the month is on Monday, it means that it's only the 3rd working day, so I would need to launch the process on Wednesday - the 7th of the month.
View 2 Replies
ADVERTISEMENT
May 11, 2011
I have a friend (really), who is the author of a Perl application that uses backticks to launch an external application. The process reads a largish set of data files, and printing largish amounts of data which is consumed by Perl. Very rarely, the external application crashes. When it does, the Perl script has been seen to hang, and the host CPU usage goes to 100%. The Perl script can be killed and the host recovers.
The question is whether this is predictable/expected behavior, and if it is, is there anything within Perl which can be used to defend against this behavior. I have already recommended the use of the open() form of reading from a child process, but I'm not sure whether that really accomplishes anything. My theory on the matter is that Perl ends up busy-waiting on the child's output, never receiving any EOF, and consuming all CPU. I cannot see how using open() changes that behavior. I am now interested in this problem so I can avoid causing similar behaviors in the future, and just because 'inquiring minds wish to know'.
EDIT: I suppose I should have added that this is on generic 32-bit Linux hosts; Perl 5.8.X
View 11 Replies
View Related
May 12, 2010
what is the correct process for updating an application installed via the './configure, make, make install' sequence?For example, I have an app checked out via a git repository, on which I run the 'make install' on to install. Then a few days later I run a git pull to update to the latest release, do I just run the same sequence again or should I 'make uninstall' first?
View 3 Replies
View Related
Dec 16, 2010
I would like to get a log of all processes that are launched with the time that they were launched and the arguments they were launched with. Is this possible in Linux?
View 3 Replies
View Related
Apr 30, 2011
I've created a bash file that calls another bash. And I would like to get the pid from the second file launched, to wait for the file to ends. The second bash file launches processes in background. How can I get the PID from the second bash file?
Here's my code:
Code:
#!/bin/bash
echo "FIRST"
./second.sh
PID=$(echo $!)
wait $PID
echo "CONTINUUING FIRST"
View 3 Replies
View Related
Feb 1, 2011
I am using Ubuntu 10.10 maverick meekat...suddenly terminal cannot be launched.
View 8 Replies
View Related
Dec 17, 2010
I am using DreamLinux. I have pinned a program, that runs in terminal, to the launcher in the panel on desktop. The program's executable file (name: feap) is located in /home/User/feap2.2 After I added the launcher to the panel that runs the file in terminal, the program asks for the input file (text file with alot of commands) when run. By default the program accepts the files that are located in the same directory i.e. /feap2.2 , so I placed the input file in the same directory.
However when I run the program from the panel, and give the input file name, it says no such file exists. Then I gave the file name with full path, but problem was not solved. I have tried alot e.g. placed the input file at other locations, but all in vain. I have set all input file permissions to be accessible by User as well. I will be much relieved if someone suggests where to place the input file for the such program running in the terminal launched from panels?
P.S: If I open terminal, go to the directory (/home/User/feap2.2), run the program's exe file, and then give the file name, it accepts the input file and it give results.
View 1 Replies
View Related
May 30, 2011
How the dhclient retry working(Background Process).
View 3 Replies
View Related
Jul 28, 2010
I have Samsug CLP 315 laser printer. To my delight Samsung provides software to monitor the fill level of the cartriges. I found that is done by a process which continuesly uses cpu power. Very little...but anyway. A constant check is not necessary. How and where could I configure this process, so it would run lets say very hour of so?
View 9 Replies
View Related
Jun 19, 2010
I have set up an encrypted ext4 partition on a new external USB HDD. When I plug it in, some sequence of a daemons and scripts cheerfully puts up a dialog to ask me for my pass phrase and then creates a mount point and mounts the drive in /media. I'd like to know how to configure this process to change the name of the mount point (right now it's an unwieldy hex string), it's permissions and ownership. I'm sure this is straightforward, but I just don't what the relevant programs and files are.
View 2 Replies
View Related
Jan 8, 2010
one tell me the internal working of kill command. that is how it kills a process internally or from where it picks file to continue its process.
View 3 Replies
View Related
Jan 21, 2011
I have a high priority service that I start with sudo nice -n -10 process. This process does not need superuser rights though, except for the priority elevation. But nice requires superuser privileges to elevate priority.
View 3 Replies
View Related
Jun 12, 2010
send the details raid configuration how to use in linux el5 and how to indentify the raid degrade process and how to rebuilt the process.
View 4 Replies
View Related
Sep 8, 2010
Code:
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
[code]....
Description of what the code does or what i intended to do:
1. Created a child process from parent process using 'fork()'
2. Sent a signal 'SIGALRM' from child process to parent process using 'sigqueue' function.
(The Third parameter of 'siqueue' function contains the message (message msg) which the child process wants to send to the parent process.'msg' is a stucture instance containing a) pid of child and b) string) 5. Print the 'msg' sent by child process inside the signal handler function 'sig_action_function' of the parent process I am getting some junk value when this line is executed
Code:
printf("%d
",msg->cpid);
I expected to get the pid of child process, which the child process sent to parent process through the signal.
View 3 Replies
View Related
Aug 12, 2010
as we all know Process Scheduler does Process scheduling and its a process as well. I was just wondering that if this happens then the Process "Process Scheduler" should be a part of Process queue as well.
So if there are 5 process are there in Process queue & process scheduler is administrating them then since its also a process, once it puts a process under RUN state it should itself go inside queue because at one instant only one process can get executed on a processor. This is quite confusing for me. Please help me out. I tried to search on this but could not find any relevant topics.
View 1 Replies
View Related
May 4, 2010
How do you find the parent process of zombie processes?
When the child process is something where the parent is not entirely obvious...
Is there some way to list processes in tree format or something?
View 3 Replies
View Related
Nov 9, 2010
I have a process running on Linux.When i do ps -eaf | grep <myProcess>, it show muliple entries for <myProcess> with different pids for each entry.Kindly tell me what could be the reason for a process having multiple pids?
View 1 Replies
View Related
Jan 11, 2011
I am running Squeeze (Gnome desktop) and I'm experiencing some problems with Iceweasel. My problem is that sometimes Iceweasel just hangs when I launch it. I can see the cursor blinking 2-3 times in the adress bar and then it just locks up. I have tried a few different versions of iceweasel, both from stable (squeeze though), experimental and now a package from http://mozilla.debian.net/packages/ with iceweasel 4 beta.
All of them behaves the same way. They work for a while and then suddenly locks up when launched. The only way to get going again is to kill the process and delete the .mozilla directory. It is possible to launch the --safe-mode though but nothing with this mode lets me change anything to get a normal session going.' Also, it doesn't matter if I have extensions installed or not, it still behaves the same way with zero of them installed. How would I go about to debug this? If I launch iceweasel from the command line I get no output but I'm sure there is a way to get some more info to work with.
View 6 Replies
View Related
Mar 23, 2010
I want ro ran new commandy after sungrid finish his task.Exp:qsub -q bla command1; command2 command2 start only when job of command1 finished.
View 9 Replies
View Related
Nov 16, 2010
I've been running my shellscript for about half an hour now. It's taking longer than I thought to process all the data. I have the process ID of it. Is it possible to save the process and log out then log in and continue the process? I know how to pause a process using kill -pause pID and continue it using kill -cont pID. But that only work if you don't log out after pausing it.
View 5 Replies
View Related
Sep 18, 2010
I thought Fedora 13 could mix sound from two output sources..On my asus laptop, when music is playing and I launch skype, music stops.Just like sound stopping if I have a game running in wine.Is there a trick to allow more than one sound source?
View 1 Replies
View Related
Oct 28, 2010
I wonder how I can do to make an application launched as root, without having to go to console and run it from there?
View 14 Replies
View Related
Dec 17, 2010
After applying 200 line kernel patch alternative the terminal gives some unknown output:
Code:
bash: /dev/cgroup/cpu/user/1171/tasks: No such file or directory
bash: /dev/cgroup/cpu/user/1171/notify_on_release: No such file or directory
Yeah i know that this issue doesn't really mean anything but it's kinda annoying
View 5 Replies
View Related
Mar 6, 2011
I have a script that basically takes a list of IP addresses, and pings them to tell me if each device (Access Point) is online or not. The problem with that is, the list contains about a hundred addresses. Making the problem worse is the fact that using a single ICMP packet per device is not an option since, at certain times of the day, the network is too congested to guarantee that a single ICMP packet won't be dropped, despite the device being up and running. That means I need to send multiple pings per device for about a hundred devices. As you can imagine, doing this sequentially takes a while.
What I want to do is make my script open other threads in the background to ping multiple devices in parallel. The problem with that is - if I simply make each ping command run in parallel, soon there are a hundred background tasks, one for each address, and that consumes a lot of CPU (CPU hits 100% and stays there till the script is done). Is there a way I can make about 10 threads run at a time, and any other threads will queue until a spot opens up for them? Kind of like the token bucket, except when there aren't enough tokens, the main script waits until it can launch more background threads that ping the next addresses on the list.
View 3 Replies
View Related
Jun 16, 2011
Just got a problem that I've spent a few days trying to get around. Basically, what I am trying to do is create launchers/shortcuts on my desktop that will
a) Launch a terminal with root or sudo access
b) Launch an application.
For example, an application I might ordinarily use as a super user or root user is 'hping3.'
Basically, I want to be able to click on the launcher, and have it open up a terminal with sudo access and launch the hping3 application. I've tried messing around with the 'create launcher' function, and entering in a command to be launched in a terminal window, but to no avail (e.g. something like "sudo hping3" or "su && hping3"). How to write up a simple script to launch a terminal with su access and launch a given application?
View 2 Replies
View Related
Dec 12, 2009
As the title says, when I launch programs using the "xinit" command from the command-line they are unable to play any sounds. I am using fedora 11.
View 4 Replies
View Related
Mar 26, 2011
I have a clean install of openSUSE 11.4 64 bit using gnome as the desktop manager. When selecting applications from the gnome menu, randomly the application will appear to not launch. However, if I click anywhere in left, upper portion of my desktop it becomes obvious that the application has launched and is not visible. For example, yast will not appear but clicking in that portion of my desktop causes various windows to appear that correspond to the different options in the yast home screen.
View 5 Replies
View Related
Nov 10, 2010
I've just setup my mother's desktop PC (HP P6510F) which has a wired connection to the internet, with 64-bit openSUSE-11.3 KDE-4.4.4 desktop. Her PC also has a wireless device, so I decided to set that up. I have it working with the internet (using knetworkmanager), but I have to launch knetworkmanager from a terminal each boot, as it is not launched every boot by default.
What is the 'proper' way to have knetworkmanager launched every boot in KDE4 ? (I can hack at this, but if there is a preferred/recommended method, I would rather use that). I suspect no more detail is needed, but in case one is curious: Her wireless is:
[Code].....
View 9 Replies
View Related
Jul 26, 2015
I use Debian Jessie with Gnome.
I have installed Timeshift. Administrative password is requested when I click Timeshift icon in Gnome menu. I enter the password (or paste it to be sure) but it always returns with "incorrect password, please try agian" message. I am sure that I type my password correctly.
I looked at the icon's properties. It runs "timeshift-launcher". I changed it as "gksudo timeshift" or "sudo timeshift" or "gksu timeshift", enabled "Launch in terminal", disabled, but nothing changed. Always same password request window appears and it rejects my password.
However when I run "sudo timeshift" or "gksudo timeshift" command in Terminal it accepts my password and runs.
When I run for example Synaptics via Gnome Menu, password request window is with black background and it accepts my password. However when I run Timeshift, password request window is with gray background and it rejects.
Root password was not defined in my system during installation and I am the only user. I run administrative commands via sudo without any problem.
View 3 Replies
View Related
Dec 25, 2009
configuration: $uname -a
Linux perosoft.home.org 2.6.31.6-166.fc12.i686.PAE #1 SMP Wed Dec 9 11:00:30 EST 2009 i686 i686 i386 GNU/Linux
$/sbin/lspci -nn | grep 'VGA|NV'
01:00.0 VGA compatible controller [0300]: nVidia Corporation GeForce 8400 GS [10de:0422] (rev a1)
$rpm -qa|grep kmod
kmod-nvidia-2.6.31.6-166.fc12.i686.PAE-190.42-1.fc12.8.i686
kmod-nvidia-PAE-190.42-1.fc12.8.i686
i have created a shortcut for konsole on desktop, if i click on icon all desktop is freezing for 10-15 seconds before konsole is launched. if i have the same aplication overlapped in taskbar and i click once same thing is happening, desktop is freezing before select menu is appear.
View 7 Replies
View Related