Software :: Correct Output From Script Appears Only When Script Is Run Interactively?

Jan 15, 2009

I have a script on several of our systems that runs a series of checks, and e-mails the results to the system administrator. The workstations in question are running a derivative of Fedora Core. The code for the script is listed below.

Code:
#!/bin/bash
# This script will run the df and uptime commands,

[code]...

View 2 Replies


ADVERTISEMENT

Programming :: Not Getting Right Output To Correct Terminal Window

Jun 17, 2010

I have a server client prog in which server is my 'agent' and client is 'manager'. Following is the code for both agent and manager. I want my agent to send what manager is requesting. But it is not working the way I want. The parameters which manager is requesting, agent has to send to manager but in this program result for those parameters is shown on agent's own terminal window. Where as I want them on manager's window. Secondly, there result is not correct, means it is giving ' 0 K ram and 0 no of process....

Code:
//code for MANAGER
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h> .....

View 2 Replies View Related

Debian Multimedia :: Whenever Take A Shot, The Video Window Appears 'solid Blue' In The Output Image?

Sep 1, 2010

I'm trying to produce some screenshots of the screen in which there's a window playing a video in avi format. The problem is whenever I take a shot, the video window appears 'solid blue' in the output image. Is there any way or program with which I can capture the current frame of the video

View 1 Replies View Related

Debian :: Start Bootchartd Non-interactively Each Time?

Apr 19, 2011

want to use bootchart to see how much time its taking for things to load up and the desktop to settle. I am having a little trouble figuring out how to make sure that bootchard loads up each time (non-interactively) so I can easily put up the results and see what could be done better. The man page of bootchartd says :-"bootchartd is commonly used to profile the boot process for the purpose of speeding it up. In this case, it is started by the kernel as the init process. This is configured by adding the init=/sbin/bootchartd option to the kernel command line -- either interactively or by editing the bootloader's configuration file. Please refer to the documentation of your bootloader for details (e.g. lilo, grub or yaboot)."

View 2 Replies View Related

Ubuntu :: Interactively Operate With Program Using Bash?

Nov 3, 2010

how to interactively operate with program using bash? such as program would ask user to select choice between "a/b/c" and then input enter to confirm? i know i could use

program << EOF
a
EOF

to choise "a", but how to input "enter", so that i could call this program in my script.

View 5 Replies View Related

Server :: Adding A Host To Known_hosts Non-interactively?

Mar 9, 2011

I have an automated setup (debian) which includes a startup script that rsyncs to a server (always the same server). Everything works well - just that I have to manually confirm that the host is supposed to be added to the known_hosts

Code:
The authenticity of host 'myserver.com (xx.xx.xx.xx)' can't be established.
RSA key fingerprint is 9b:ee:a6:47:hb:92:ac:76:81:94:18:7d:ad:8c:3e:25.

[code]....

View 2 Replies View Related

Ubuntu :: When Turn On The Computer, The GRUB Menu Appears, Press Enter, Then A Little Flashing Underscore Appears On The Screen?

Dec 21, 2010

I recently removed Winblows Vista from my laptop and replaced it with Kubuntu 10.10 (I left the recovery partition on there, just in case). When I turn on the computer, the GRUB menu appears, I press enter, then a little flashing underscore appears on the screen in the top left hand corner. After a few seconds, the Kubuntu logo appears and I can log in.But yesterday I replace Kubuntu with Ubuntu 10.10. The Boot process is the same, but the little flashing underscore in the top left hand corner flashes for about 10 seconds longer then Kubuntu 10.10 did, and then a few paragraphs of text appears for a few seconds, then I am logged in automatically.Is this "unusual" boot process anything to worry about, or am I just being a noob.

View 1 Replies View Related

Ubuntu Multimedia :: When Click On Perference Then Sounds And Go To The Output Selection It Has Only Dummy Output As A Option?

Apr 29, 2010

I cant seem to get the sound working and when I click on perference then sounds and go to the output selection it has only dummy output as a option.

View 3 Replies View Related

Ubuntu Multimedia :: KMplayer - No Video Output But Can Get Only The Audio Output

Mar 7, 2010

I installed KMplayer but I cant play video files...No video output but can get only the audio output...So how to make this work for videos?

View 2 Replies View Related

Ubuntu Multimedia :: Sound Output - Get HDMI Audio Output To My TV

Jan 25, 2011

Running 10.10 and win 7 on my HP dv6-2150us laptop and I'm having a few issues.

First how do I get HDMI audio output to my TV? I think I have just a integrated Intel graphics card. It works fine in windows but I can't seem to get it to work in Ubuntu. I tried searching but couldn't find anything pertaining to this issue.

View 3 Replies View Related

Ubuntu Multimedia :: Cannot Select MP3 As An Output Output Option?

Jan 6, 2011

I am sure that this is very simple but I have installed sound juicer and the gstreamer plug ins. The problem is i still cannot select MP3 as an output output option

View 3 Replies View Related

Ubuntu :: Audio Output Will Not Output Sound To Speakers?

Jul 19, 2011

I don't know anything about ubuntu. Could you guys help me out. I'm pretty knowledgeable with windows if you guys need a printout of something let me know. My friends getting really frustrated about this. Help!!i

So here's the situation. He plugs his audio jack into his computer and then into the speakers but it still plays from the computer speakers.

View 7 Replies View Related

Software :: Audio Output Device Changes To 'dummy Output'?

Mar 27, 2010

I finally got audio working on my ubuntu 9.10 desktop... now I am having sound issues watching movies from a network share.The sound device continually randomly changes to "dummy output device" and then there is no sound output. The sound icon dissapears on the toolbar. To get it back and audio to start working I have to $sudo alsa force-reloadIt seems to happen everytime there is a network delay, the movie will stop for a second and then when it plays the sound is gone

View 1 Replies View Related

Software :: Cloning An Audio Output To Another Output?

Mar 4, 2011

Is possible to have two identical sound card outputs? For example, is I want to use two headphones at the same time.

View 6 Replies View Related

Fedora :: Grub Appears Now At Boot?

Dec 3, 2009

opened the system>administration>bootloader guior anything just opened it)now on boot I get a timeout with an option to go to the grub configuration or boot my one and only installed versionwould really like to get rid of that and go back to booting straight to my only fedora version installed without the option to go to grub (might be useful someday, but now is not the day

View 2 Replies View Related

OpenSUSE :: Some Windows Appears With No Top Panel?

Feb 17, 2011

After I reinstalled OpenSuse 11.3. I have an interesting problem. When I start Umbrello or Ocullar under GNOME, windows of these applications are opened maximazied with no top panel (the one with close, minimize, maximize buttons and window name). I can't resize this window or move it somewhere.

View 9 Replies View Related

OpenSUSE Network :: DHCLIENT_SET_DEFAULT_ROUTE Appears To Be Ignored

Dec 23, 2010

I have two network interfaces in my opensuse 11.3 system and want to control the interface which is used as default route. Somehow, it always picks the first card no matter what. In particular, I have tried setting DHCLIENT_PRIMARY_DEVICE to 'yes' resp. 'no' in both ifcfg-* files in /etc/sysconfig/network. Also, I have tried DHCLIENT_SET_DEFAULT_ROUTE but that also appears to be ignored. I remember having used this in the past with previous opensuse versions but it no longer seems to work. What is the correct way for doing this?

View 5 Replies View Related

Ubuntu :: USB Modem 9.10 - Nothing Appears To Be Working

Feb 23, 2010

I have installed Ubuntu long ago, and I just loved it =), but I have been quite disappointed about the drivers support of some components, for example: I have a USB Modem ZTE MF622, my ISP is TMN. I have read about people that have configured it Ubuntu 9.04 and with another ISP, but when it comes to Ubuntu 9.10, nothing appears to be working.

View 1 Replies View Related

Ubuntu :: USB Drive Appears As Read-only

Mar 6, 2010

I have a Coby MP3 player which functions as a USB drive. It has always worked fine, both on Ubuntu Karmic and on the Windows (booted from another disk).

Now, in Ubuntu, it appears as read-only (but it works fine when I boot into Windows on the same machine). How can I deal with this? It's not a matter of my fstab, which I have never manually edited; the USB device is always auto-detected.

View 4 Replies View Related

Ubuntu :: USB Key Icon Appears Three Times?

May 12, 2010

Upon mounting my USB key the icon in the bottom right corner displays 3 times. I had this problem already with Karmic, and I hoped that with Lucid it will fix itself.

View 3 Replies View Related

Ubuntu :: Command Prompt Appears Instead Of Gui?

May 16, 2010

When i boot to ubuntu 10.04 lts. command prompt appears instead of gui interface is this a bug. I had made a new installation of ubuntu 10.04 lts 64 bit.

View 1 Replies View Related

Ubuntu Installation :: 11.04 Appears Twice After Upgrade

May 21, 2011

I have ubuntu installed through wubi on me windows xp machine.

I updated to 11.o4.

However, on startup Ubuntu has two generic and two recovery logins now.

All of them work, but I like having just one of each.

Is one maybe a partitioned install now.

How do I check and how do I get rid of one.

I would keep the partitioned one. If that's what happened.

View 7 Replies View Related

Ubuntu :: Nothing Appears After Compiz Uninstall?

Jun 1, 2011

I have unstalled (part of) copiz and now my desktop is completed empty, no icon whatsoever. I can I restore to my old seetings. I have tried compiz --replace and got the following message:compiz (core) - Fatal: Couldn't open display

View 3 Replies View Related

Ubuntu :: Nothing Appears In Terminal When Type Into It?

Jul 9, 2011

I'm using Ubuntu 11.04 and I've been running into a bizarre scenario. So when I open a terminal, I can type commands into it. Then I open a tab (by pressing Ctrl+Shift+T) and can type into it normally as well. But when I close the tab (going back to the original terminal), I suddenly can't type into that terminal -- no characters appear on its command line. It is not a severe issue since if I jump to another window (say Firefox), then come back to that terminal, I can suddenly type again. Also as far as I know this seems to be the only scenario to which this problem occurs. Has anyone ran into the same issue?

View 1 Replies View Related

General :: Not Booting,only Grub> Appears?

Nov 26, 2010

i installed Rhel5 as dual boot with windows.after installation it worked nicely.i forgot to eject the installation dvd of rhel5 from the cdrom.while rebooting the installation menu appeared. so rebooted and eject the dvd.The problem is the GRUB loader not showing the boot menu(windows or Redhat).it shows grub>what sould i have to do, to boot

View 2 Replies View Related

Software :: No Dropbox Icon Appears

Apr 22, 2011

I just installed Dropbox using urpmi command and it seems to install okay but when I run dropbox, I never see it listed in Nautilus file browser. I do have Openbox with the Tint2 panel installed and no icon there either. Dropbox never did ask me about my DB account information. This is the 64bit version.

View 2 Replies View Related

CentOS 5 :: Change The Name That An Email Appears To Come From?

Feb 6, 2010

I can send a test email from the shell like this (say logged in as username jeff):mail -s test [URL] testing ctrl+d ctrl_d

View 6 Replies View Related

Ubuntu Multimedia :: Ffmpeg / Mtv Format - Error "Unable To Find A Suitable Output Format For Output.mtv"

Jan 22, 2011

I'm still trying to find out if my coby mp3 player will actually play mtv video files as is advertised.

ffmpeg -formats does list mtv but the only command I really ever used was one to convert a vid to an mp3 so I tried Code: ffmpeg -i test.mp4 -acodec copy output.mtv it returns Code: Unable to find a suitable output format for 'output.mtv' I can't find any mtv files online for purchase or free for that matter, so I know this is all pretty obscure but shouldn't there be a way to convert them since ffmpeg lists mtv format?

View 6 Replies View Related

Fedora :: MP4 Player On 12 - Images Appears Fuzzy

Feb 8, 2010

Usually I use Dragon Player most of the time. It plays low resolution files fine but somehow has trouble decoding the 1080p/30p video clips I shot with my Sanyo VPC-FH1. The images appears fuzzy and look like ghosts.

I am not sure what codec does Sanyo use, but I would imagine it is some sort of AVCHD variation.

Could anyone recommend a good MP4 player which can handle these HD videos?

View 8 Replies View Related

OpenSUSE :: Instance Of One App Appears As Separate Buttons?

Jun 22, 2010

Is there a way (as in there in Windows), for not to group tasks of same application, in one single button in the task manager? so even every instance of one app appears as separate buttons?

View 1 Replies View Related







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