Networking :: Programmatically Check Process Down / Up Stream

Aug 31, 2010

I wonder if there's a way to capture the same information I can get from nethogs to a file. All I need it per process (rather than per interface) what is the sent/received traffic.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Cron Script That Will Check Stream?

Jun 19, 2011

I've been searching for this and hope there is a fairly simple fix. I have a pc that resides in a small bldg. at the base of a radio tower in Central America. It receives a stream from the main studio, it then broadcasts through our tower via the stream, on occasion it will lose the stream (foul weather, etc.) Often times it will fail to reconnect, I have used various players, VLC, rhythmbox, mplayer.

Is it possible to have a cron script that will check the stream, if all is true, then carry on and if false, reconnect to the stream? If so any pointers or directions?

View 4 Replies View Related

Programming :: How Do You List Processes - Get A Process's Std - In|out|err - Stream

Jun 3, 2011

How do you list processes, get a process's std(in|out|err) stream, or wait until a process is finished in C?

View 3 Replies View Related

CentOS 5 :: Check 'how Much Ram And Cpu A Process Is Consuming'

Mar 19, 2010

I'm trying to check how much ram memmory and CPU is a particular process consuming, i have checked free -m and top but is not esay to undesrtand the output from CPU

What i need is to check the consuming for a particular process; with free -m i'm able to see only the available space of memmry and i want to know how much is consuming a particular process, the same with 'top'

It's hard ot understan the output from top, to many columns and MAY process, not easy to check the process i want to monitor

View 5 Replies View Related

General :: Get UserName In Place Of UID In The Process Check?

Apr 17, 2010

I add a user in my linux machine using the command 'useradd' as shown below. # /usr/sbin/useradd -c "Non Root User" -d "/home/testUser" -g root testUser "/etc/passwd" file shows that user created with uid '517'

cat /etc/passwd
ot:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin

[code]...

View 1 Replies View Related

General :: Check A Process Which Is Over Loading The Serve?

May 12, 2011

How do I check a process which is over loading the server. I give command Top andthe average load of the server is so high.

How should I kill the over loading process.

View 5 Replies View Related

Server :: Disk Usage By Process / How To Check?

Jan 24, 2011

how to check which process consuming a lot of HDD I/O ? Do You know any good command which can show me which process saving something big on the storage system ? "iostat" or maybe "ps" ? Would be great if somebody could past me here nice command.

View 3 Replies View Related

Software :: How To Check Which Script Start Process?

Sep 7, 2010

When my system starts this command is executed by a script /usr/sbin/apache2 -k start...How can I find which one start it? I check in rc2.d/ dir in the apache script but didn't found anything similar. Where else should I look?

View 7 Replies View Related

Software :: How To Check Which Process Is Accessing Device?

Feb 7, 2010

I wonder if there is a command that can tell me which process is accessing a folder, say, /mnt? Sometimes I forgot which process is accessing /mnt and therefore cannot umount /mnt.

View 4 Replies View Related

OpenSUSE Multimedia :: After Ten Steps Check Process, Still Can't Play Dvd?

Aug 10, 2010

I have been working and searching the forum for a solution to dvds not playing on my hp dv2000 laptop running openSUSE 11.2, 2.6.31.12-0.2-desktopHere are the post ask for in the ten step process. (lots of them)

#1 Check if there are missing dependencies
#1 LC_ALL=C zypper ve
linux-jh3c:/home/carl/11.2Setup/dvd # LC_ALL=C zypper ve

[code]...

View 9 Replies View Related

General :: Check If Process Is Running / If Not / Execute Another Script

Jul 11, 2011

I have a game server running using java, and it tends to crash sometimes, and only way to start it now is manually, so i thought i could create a script to check periodically if java is running, and if it isn't, run my startup script for the game server also, if it's possible it should log when it actually started the server startup script into a text file or something, so i can check why it crashed.

View 6 Replies View Related

General :: Bash Script - Check Process Is Running, If Not Start?

Feb 7, 2010

I am using Sphinx search on my webserver and it quits after a certain amount of time leaving my search page broken.Here is a bash script that I want to run every 10mins via cron:

Code:
#!/bin/bash
if pgrep searchd | grep "[0-9]"

[code]...

View 24 Replies View Related

Red Hat :: RHE WS 5 USB Sticks - Check The Ability To Automount CDs At Various Stages Of Setup Process

Oct 4, 2010

We've just set up 3 Dell systems with 64 bit Red Hat Enterprise Workstation 5. As part of our system configuration we point the user authentication to our LDAP server, and automount people's home directories from our fileserver. At this point, our security people do some configuration and we get it back.

We are typically running KDE. On all three machines, when you plug a USB stick into the system, the familiar window pops up asking you what you want to do - open the contents in some program, open a file viewer, etc. and the stick shows up in /media When you stick a CD or DVD into the drive nothing happens - you don't get the options window and nothing appears in /media I'm trying to get an idea of how the automount process works, and where I may have stepped on it. We've got three more identical machines that haven't been installed yet, so my plan is to check the ability to automount CDs at various stages of our setup process.

View 3 Replies View Related

Programming :: Check If A Process Is Running - Syntax Error Near Unexpected Token `else'

Feb 10, 2011

I have an ubuntu 10.10 server and want to run a script on it to check if a process is running. If it is not running, it will start the process and also write into a log file.

When running the script i get the following error message:

syntax error near unexpected token `else'

Here is my script.

View 7 Replies View Related

General :: Bash Shell Script To Check / If Empty Files Are Being Created & Start Process

Jun 25, 2010

I have an Ubuntu server in which a file is dumped every hour and a new file for the next hour and the process continues. If there is any problem due to which the creation of file stops then empty files are created every minute till the process is killed & started again. I need help to make a shell script to check if the empty files are being created and then kill the process and start it again.It would be a great help if anyone can help me regarding this.

View 9 Replies View Related

General :: How To Stop Fan Programmatically

May 27, 2011

My system doesn't reacts at writing values below 255 to /sys/class/hwmon/hwmon0/device/pwm(2,3) which correspond to 3-wire case fans connected via M/B (ga-890gpa-ud3h) headers. The idea was taken from [url]

ls /sys/class/hwmon/hwmon0/device/

It indeed shows the actual speed:

But refuses to write to fanX_input: permission denied (even for root).

More specs: kernel 2.6.38.4, sensors output is:

I do not run any daemons for fan control, but suppose the speed may be set by CPU in-kernel governor. How to stop a fan under this conditions without doing hardware tricks?

Upd: part of pwmconfig's output:

Devices:

Found the following PWM controls:

hwmon0/device/pwm2 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y hwmon0/device/pwm3 hwmon0/device/pwm3 is currently setup for automatic speed control.

In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y

Test:

Warning! This program will stop your fans, one at a time, for approximately 5 seconds each! This may cause your processor temperature to rise! If you do not want to do this hit control-C now!

Hit return to continue:

Would you like to generate a detailed correlation (y)? y

This was stopping CPU fan. And:

View 2 Replies View Related

General :: Programmatically Detecting A USB Device?

Dec 14, 2010

I have a USB modem and a large C++ application that needs to detect whether that device is present or not. I was hoping to get advice for what the best method to do so would be. The only solution I've thought of is to parse the output of lsusb and look for the vendor and product ID of my device, but that seems a little hack-ish and inefficient. Is there a command or program that I can provide it a vendor/product ID for a USB device and it can tell me whether or not such a device is present in the system? Or another, better way to detect the device than parsing the lsusb output that I've been thinking

View 2 Replies View Related

Ubuntu :: Programmatically Finding Out The Application Font

Jan 10, 2011

I am writing an Air application and I would like to have the app use the font indicated in Appearance Preferences.

A similar problem to this one :

[URL]

I do not have Gtk::Settings and I have looked in ~/.gconf/desktop/gnome/ but I do not have an interface folder and none of the others I opened have any font details.

I have tried simply not setting a font within my application but it is using a font not specified in the Appearance Preferences at all. It looks like Times.

Ideally I would like to be able to get this information from Ubuntu using a native process :

[URL]

get the font name of the Application font or would I have to write a script and call that from inside Air?

I have a default installation of Ubuntu 10.4 with Unity running on top of Gnome. (I think this is correct. I certainly can get Nautilus running quite easily and as I mentioned earlier I have ~/.gconf/desktop/gnome/ folders).

The brief is to get the application working on the default installation so I cannot install anything but the target machine I am using has got 'gconftool'.

View 2 Replies View Related

Ubuntu :: Generate Pdf Documents Programmatically Using Ruby

Apr 1, 2011

I need to generate pdf documents programmatically using Ruby. i.e. I don't want a GUI interface but an API interface. The bulk of my document is text but there are images included as well. I've looked at this thread: [URL] and it's 2 main recommendations PDFEdit and ImageMagik. PDFEdit has scripting available but I can't get my head round how to call this using Ruby. ImageMagik has a number of Ruby wrappers and is the kind of thing I want but as far as I can tell it only deals with Images and my stuff is mainly text.

View 1 Replies View Related

Programming :: Programmatically Getting Standard File Dialog

Jul 14, 2010

Is it possible to do the following in C/C++ in Linux:Without direct linking (my program should NOT depend on Qt or GTK), display a GTK or Qt based file dialog.The behaviour should be something like this when my program runs, when you want to open a file:The program scans whether you have Qt installed. If so, it somehow manages to link itself to Qt (e.g. dynamically loading the .so file) and display its file dialog and get the path from it. If Qt wasn't found, it tries the same with GTK. If that also wasn't found, it displays a less powerful replacement dialog instead (better than nothing).

Or is there any other simple way in Linux to get a standard file dialog somehow (similar to when compiling for Windows you can very easily get its standard file dialog, no matter what version of Windows, in your code, even if your program doesn't use any other Windows GUI at all).

View 4 Replies View Related

General :: Programmatically Connect To A Box Running Ssh From A Windows Pc?

May 11, 2010

I am writing an application that has a web service client on a Windows PC that needs to call a web service on a Linux server. In order to create the client, I need to be able to programmatically read the WSDL on the server and use it to create the client. I'm using the web tools in MyEclipse to build the client.

The Linux server is running Red Hat, I believe, with ssh enabled. I can connect from Linux to Windows with no problem, but I can't reach the Linux box from Windows. I get one of three errors when I try: no path to host, connection reset, or unknown error number, depending on the port I use. I've googled for an answer, but haven't found anything yet.Is there some way to add the Windows IP to a permission file on the Linux machine so it will be recognized when it queries for the WSDL?

View 9 Replies View Related

General :: Create A Png Or Jpeg File Programmatically?

Oct 3, 2010

Given a matrix with 0,1 entries, how can I create a graphic in linux such that we have a black square or pixel if the entry is one and white otherwise?

For example, if the matrix is:

0001000
0011100
0111110
0000000

then I want a graphic that looks like:

[code]....

I will be working with many large matrices, e.g. 1000x1000, or 5000x1000 so I need to do this automatically.

View 6 Replies View Related

Software :: How To Programmatically Determine Monitor Type

Jul 7, 2010

I know the tool system-config-display can tell me all about my display but it's not available on all systems and so I'm looking for alternative ways to get my monitor type. Ideally, I could just look in /proc but I don't see anything there and I would like to be able to do so from a script perhaps written in bash or perl. Is there some place to get this info, say in a config file somewhere?

View 2 Replies View Related

Programming :: Programmatically Set File Associations In Gnome/KDE?

Jun 3, 2010

I would like to associate my program with several file extensions programatically.

Everything I've been finding online is how a user would set a file association, does anyone know how to do this progormatically (bash, C++, etc)?

I would mostly like to get this to work with Gnome, but KDE would be nice as well.

View 3 Replies View Related

Ubuntu Networking :: Android/ Networking - Stream Media From PC To Phone?

Apr 10, 2010

I am running K/Ubuntu 9.10 with an HTC Hero (CDMA) running Android 1.6.

I would like to be able to stream media from my PC to my phone. Much like what gMote does but you can play it on your phone and not just navigate.

Also, does anyone know a good way to upgrade my HTC Hero (CDMA) to 2.1?

View 1 Replies View Related

Programming :: Get Default Browser Name And Mail Client Name By Programmatically?

May 4, 2009

I am developing a application in which i have to show the name of default browser and mail client. i want to run this application on RedHat, SuSE, Mandriva, and Ubuntu. I have checked similar threads but not found any useful information.

View 8 Replies View Related

Software :: Not Able To Stream / Connect To Stream Using Vlc

Dec 26, 2010

It seems I might be having an issue that's a non-issue. I am not able to stream/ connect to a stream using vlc.I've looked at a few walk-throughs; I follow the steps and as often as not I get no error messages but cannot connect to a stream.

View 1 Replies View Related

Ubuntu Networking :: Can't Use SSH To Stream Media Anymore

Oct 15, 2010

I'm new to linux, but after install ubuntu to one of my old PCs I have used "Connect to server" to view media from different computers from each other.Just today I've been getting Host Key verification failed on both computer A and B, one of the computers is running wubi.

View 2 Replies View Related

Networking :: Possible To Stream All Audio From One Computer Over Network?

Jan 12, 2010

I have a MacMini connected to the big-screen tv on one side of my living room. I have my gaming computer on the other side of my living room. I often use VNC to control the Mac, so I don't have to get up to change which iTunes playlist I'm listening to, or play a movie, or whatever.I would like to be able to do something similar with the audio.Here's my problem. Sometimes it's really hard to get the volume just right when I'm at the far end of the room. If I increase the volume to a level where I can hear everything, it sometimes annoys the neighbours.

So, is there a way I can stream all the audio from the MacMini so I can listen to it using a Linux laptop at the far end of the living room without annoying the neighbours?Because I want to set this up for watching movies, it needs to be fast enough to stay in sync with the picture.(It might just be easier to run some speaker wire across the room, but I like to try to do things the hard way first. Heh heh heh...)

View 1 Replies View Related

Fedora Networking :: Create Shared Folders And Stream To Other Pc's

Jun 5, 2011

network with a laptop with windows 7, a wireless all-in-one dcp-585cw, eminent em7075-dts.
it's possible to create shared folders in windows, in order to make them accesble for other pc's, devices, such as the eminent em7075-dts multimedia player.

when i start windows mediaplayer ( a requirement), i can browse over my pc when i am on the interface of the em7075 ( what you see on tv when go to the hdmi channell.) in other words, i have the option to play / stream a movie from my pc, over the network to the em7075.

View 2 Replies View Related







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