General :: List All Jobs And Their Pids From A Certain Time Frame?
May 10, 2011
Is it possible to list all jobs and their pids from a certain time frame? For instance if I needed to see all completed jobs from yesterday how would I do this? I've tried jobs -n but that was messed up because I had typed jobs right before that.
View 1 Replies
ADVERTISEMENT
Oct 17, 2010
I run a small home server (Debian 4), which acts as my gateway to the internet (ie, firewall) and runs a web server, dhcp, dns, and acts as a file server to the rest of the machines on my home network. Now I know it's never a smart idea to have all those services running on the same machine that is acting as a firewall, but I don't fancy running multiple servers just for home use, as it's mainly allowing me to learn system administration.
I noticed a few days ago that my internet had become unbearably slow, to the point where I could sometimes not load web pages. I spent a while searching through log files on my gateway, to try and find out what was eating up all of my bandwidth. When I came to apache's access.log file, I was confronted with this:
Code:
204.45.41.82 - - [17/Oct/2010:06:25:10 +0100] "GET http://vewice6.nightmail.ru/marriott-grand-cayma.html HTTP/1.1" 200 36921 "-" "Mozilla/4.0 (compatible; M$
204.45.41.82 - - [17/Oct/2010:06:25:11 +0100] "GET http://malaysiapodcaster.blogspot.com/2006/05/blog-post_11.html HTTP/1.1" 200 58681 "-" "Mozilla/4.0 (com$
[code]........
Multiple requests to my server, for totally random websites. I didn't even know it was possible to make those types of queries to a webserver. The only thing that is on the web server is a browser based torrent client. I have only shown a small snippet of the log file, but there are around 90k lines to different web addresses, from many different IPs. What I want to know, is what is happening? :S Why is someone querying MY web server, for web sites totally unrelated to it? And most of all, how can I stop it. My initial was to try and use iptables to block multiple requests from the same ip within a certain time frame, which I think would work as the server shouldn't really get many queries from external networks.
View 9 Replies
View Related
Jul 1, 2010
I want to create 2 cron jobs daily
1st cron: Every day by 13(1pm) I want to stop the httpd service
2nd cron: Every day by 13:30(1.30pm) I want to start the httpd service
I tried but only 1 cron job can able to run at a time.
View 7 Replies
View Related
Jan 14, 2009
Command top displays the pids (tasks) by order of CPU usage. Could I make it order them by memory usage?
View 3 Replies
View Related
Mar 19, 2010
How do I list only access time and file name? For example if I do ls -l --sort=time then
[Code]...
View 5 Replies
View Related
Feb 28, 2011
How can I generate a list of files in a directory [e.g.: "/mnt/hdd/PUB/"] ordered by the files modification time? [in descending order, the oldest modified file is at the lists end]
ls -A -lRt would be great:[URL]
But if a file is changed in a directory it lists the full directory...so the pastebined link isn't good [i don't want a list ordered by "directories", I need a "per file" ordered list]
OS: openwrt..[no perl -> not enough space for it :( + no "stat", or "file" command]
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
Oct 19, 2010
I am programming on Linux middleware so I need to get a list of all active TCP connections. Is there any API to get such information? I know I can find the connections in /proc/net/tcp, but how to find the PIDs? Apparently ps or netstat command is not an option since it is a middleware.
View 6 Replies
View Related
Jul 26, 2011
Is there a linux command (or command combination or utility) that can identify all processes (PIDs) that are sharing a TCP/IP stack ?
View 4 Replies
View Related
Nov 21, 2010
how can I store the output of (ty to colucix for this line)
Code:
xprop -id $(xprop -root | awk '/_NET_ACTIVE_WINDOW(WINDOW)/{print $NF}') | awk '/_NET_WM_PID(CARDINAL)/{print $NF}'
in a variable and then pass the value of that variable to the kill command as the PID to kill?
View 3 Replies
View Related
Jun 28, 2010
i need C code to get child pids from its parent pid in linux and in kernel mode, is there anything like getpid() or getppid() which works in kernel mode?
View 2 Replies
View Related
Jul 14, 2010
I was reading some code the other day and thought that I saw they were using the list.pop method to pop of more than one item at a time. Something like this.
Code:
l = [ 'a', 'b', 'c', 'd', 'e' ]
l.pop(0:3)
['a','b','c']
l
['d','e']
But of course when I looked at invoking the method, it only works for one item at a time. I'm working on a data structure where I'm parcing weather data that is 15 items long that are return in as data in a list that has 3,000 + items. I was wanting to pop off a lists of the 1st 15 items breaking them into chuncks (still trying to figure out how I'm going to store the associations as each day has 2-4 readings an hour for the past 72 hours, so I was wanting to group the days together but have each data point for each time).
I know I can just write a function (with some additional tweaking needed for neg starts to work on the right end):
Code:
def longpop (seq, length=1, start=0):
slice = seq[start:start+length]
del seq[start:start+length]
return slice
But with increasing data sizes, I was wondering if there was a faster built-in way of doing this (perhaps implemented under the hood written originally in C as an extention, for example).
View 6 Replies
View Related
Jan 8, 2010
My question concerns NCMPCPP ( the frontend music player ). I installed, configured NCMPCPP a while ago and it worked like a charm.
But yesterday some colours just changed back to the default for some reason. From : Code: http: (double slash) img37 (dot) imageshack (dot) us/img37/1865/firstss.jpg To : Code: http: (double slash) i45 (dot) tinypic (dot) com/24nij34.jpg Going into the preferences of the terminal : Code: http: ( double slash )i46 (dot) tinypic (dot) com/2j26q9z.jpg As you can see, it is using the default colour yellow. I created another profile already, changing those two colours to black and grey, but I don't think this is a good solution.
I checked the error.log file : Code: TagLib: ID3v2.4 no longer supports the frame type TDAT. It will be discarded from the tag. I'm guessing it has something to do with that.
View 8 Replies
View Related
Oct 20, 2010
I have several users on handhelds and they like to let their sessions time out. Their zombie processes then cause record locks.I've come up with calls for killing the pids for any prior sessions started by a given user. This procedure would be executed in the .bash_profile.
View 3 Replies
View Related
Jan 16, 2010
I put a backgroud job in redhat5 as nohup commad script & I do not see end thsi jon. now I want to bring to as foreground job. how to do this? some paper told me as jobs jobnumber. jobs and spa does not work
ps ua does not return a job number
View 1 Replies
View Related
Jul 14, 2011
After installing some Fedora software updates, I can no longer see the header frame in every window. Furthermore, I can't access any window frame after I open a new window frame.
How can I fix this? Can I remove all the updates I recently installed?
Note : After installing these update, when I reboot the system, I can see there are two version of Fedora.
View 1 Replies
View Related
Mar 21, 2010
I see so many guides on how to run crontab, but what I need right now is to learn how toFind log files about cron jobsConfigure what gets logged
View 3 Replies
View Related
May 8, 2010
How can I cron jobs for less than a minute for example configuring cron job to do something for each 15 seconds.
View 4 Replies
View Related
Nov 30, 2010
I am having a shell script which runs perl jobs.The script is starting the perl jobs when it is executed manually from the command line , but when the same script runs from crontab it is not starting the perl jobs.I have these things in the begining of the script
. /etc/profile
export MDX_HOME=/home/entsms
source $MDX_HOME/.bash_profile
[code]....
View 1 Replies
View Related
Feb 7, 2011
Which commands lists your outstanding print jobs?
View 3 Replies
View Related
Jun 28, 2010
in my linux box i have lot of cron jobs. i need to make all cron jobs in script files. is it possible to make this. like[URL]Now how i change this in a script file
View 4 Replies
View Related
Jul 26, 2010
How to submit multiple jobs onto a Linux server. The only way I know to submit and run a job on a server is using qsub, and verifying the status of the job using qstat. I usually run my scripts using qsub -cwd so that I can run it on my own directory (instead of having the results sent to a scratch folder).
1. However, assuming qsub/msub are not available, is there another way to do it? What commands can I use instead?
2. I know that some jobs can run in the background, is that an alternative? How do I do it? And would I still be able to check the status of the job or delete it?
View 2 Replies
View Related
Dec 27, 2010
How can I convert a file with a lot hex numbers into the decimal?
Example: file1
0x59999
0x5acdc
0xffeff
I want to start $ cat file1 | util | cat >file2 and get file2 with smth like
[Code]...
View 3 Replies
View Related
Apr 13, 2011
I just found out that jobs -l and man jobs produce no output in my terminal. how could I fix that? How could I install jobs command and its manual on my ubuntu 10.10 ?
View 9 Replies
View Related
Jan 7, 2010
list the 'chkconfig --list' in alphabetical order
View 3 Replies
View Related
Jan 28, 2010
one command to list the list of folders/ within the folder.
View 4 Replies
View Related
Nov 18, 2010
is there a command or utility out there anywhere which can output a countdown of upcoming jobs from crontab? So you can display the queue of tasks in the order that they'll next run.
Anything like this out there?
EDIT: I realise there's crontab -l but that just echoes out the contents of the crontab file. I'd like somehow to get a countdown.
View 4 Replies
View Related
Jun 19, 2011
Under a Linux shell, how can I change the creation time of all a folder's files to the current time?
View 2 Replies
View Related
May 19, 2011
I have my task list in evolution (mainly so it can sync with my phone and online task list) but I always forget to look at the task list. Is there an application or plugin which periodically displays the contents of the tasklist or even better, it briefly displays the most urgent/important tasks when I login? Or anything else which automatically displays the most important tasks. Currently I have to open the task list and look at them (which I usually forget). I do not mean some kind of alarm when the task is due but more a daily reminder of what to do.
View 3 Replies
View Related
Mar 24, 2010
I have a linux (Slackware) machine and the time/date is like, June 23rd 2003, 10:00am (It's 11 here) and I am not able to set the time to have it correct. I change the timezome to Montreal but the time is still wrong.
Is there a way to force it to sync with my domain controler or even another online NTP server?
View 1 Replies
View Related