The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
29 views

NRPE (Winrpe) Powershell Command - Unable to read output in Nagios

I'm trying to run an Powershell script from NRPE.cfg and get the output in Nagios. When i run the script on the local (Windows) server, everything is just fine. But when i put it in the NRPE.cfg en ...
0
votes
0answers
86 views

logstash output to a webservice from Symfony

Good Morning, I would like to send logstash output to a web service I created with Symfony. So far my web service work, I used php to try to send a log. Quick example in PHP $client = new ...
1
vote
1answer
596 views

Capturing output from a remotely executed command via SSH fails in CRON

This question is in a direct relation to this one: ssh fails to execute remote command when run from cron bash script - works from CLI I'm not able to comment on the accepted answer as I don't have ...
1
vote
1answer
23 views

How to get a debug output from the find command?

I have the following find command: find /home/ -type d -name "something" what I want to achieve is to know which directory/file is checked by the find command no matter the fact that it does or ...
2
votes
1answer
1k views

launch a batch remote command via /putty ssh and get the output in a local file

I have been trying to launch a remote command in putty using the -m [file] flag and get the output putty.exe -[user]@server -m commandscript (the command is just cat> somewhere ) and after that I ...
0
votes
2answers
121 views

iptables causes infinite loop of GET request

I am trying to reroute HTTP traffic from 80 to 8080 to be used by Burp Suite. Using iptables, my command was: iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to 127.0.0.1:8080 By doing so, ...
2
votes
0answers
231 views

fsck output status displaying an odd out put after Pass 5: Checking group summary information Linux

today my server went down due to the following: Checking filesystems /dev/mapper/vg-root contains a file system with errors, check forced. /dev/mapper/vg-root: Inodes that were part of a corrupted ...
3
votes
3answers
517 views

Filter the output of a log file

Question I've a log-File which display all console-logs of my website in the range of 10.Oct to 1.Nov, start with the logs of 10.Oct. I need all logs from the range of 25.Oct until today. The problem ...
2
votes
2answers
5k views

Nagios: NRPE: Unable to read output, Can't find the reason, can you?

I have a Nagios server and a monitored server. On the monitored server: [root@Monitored ~]# netstat -an |grep :5666 tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN ...
0
votes
0answers
86 views

wget show respond request output on console and write logfile in same time

How can I use wget to show a respond request on console, and also write them to logfile in the same time? wget --append-output=/tmp/LOGFILE.log "http://TESTSERVER:8080/PAGE/DATA" When I used ...
1
vote
2answers
3k views

How to view specific interval of timestamp in huge log file?

How to view what happened to server in specific time period and specific date? For example: I want to see what happened 23.03.2013 from 6-8am i want to use command line, maybe cat+grep+sort ? log ...
3
votes
1answer
462 views

Save output and exit code of command to files on windows

I want to run a command and save its output and its exit code, in different files. Here's what i am doing: cmd.exe /C command 1> %TEMP%\output.log 2> %TEMP%\error.log && echo ...
2
votes
1answer
640 views

NRPE: Unable to read output with check_connections plugin

I'm using plugin which gives me warning or crtis with established connections. If I run it on local machine it gives: *root@graber:/usr/lib/nagios/plugins# ./check_connections -w 1 -c 5 -C sshd ...
3
votes
2answers
1k views

Is there a way to make output from bash script visible in browser?

I have made a script for svn update for programmers. The script works fine from bash. Programmers want to execute it from browser (via theirs administrator site). Script is very simple (its only ...
1
vote
1answer
657 views

What is considered as output when running a PHP script cron job?

I am running a PHP script which inserts lines in a database every minute, using a cron job. My provider says: An email will be sent to this address ONLY if your cron produces output. If no output is ...
1
vote
2answers
977 views

Display “iftop” on web

I do iftop -i eth1 > out.txt It does produce the file with "encrypted" UI content such as [(B[)0[[1;80r[[mO[[?7h[[?1h[=[[H[[J[[0;7mO Listening on eth1 [[1;48H[[mO12.5Kb Is it possible to display ...
-1
votes
2answers
147 views

vmstat output incompatible

as you can see when run a vmstat like below. bash-3.00# vmstat 1 5 kthr memory page disk faults cpu r b w swap free re mf pi po ...
4
votes
6answers
3k views

Log tcpdump Output

What I basically want is to to write all tcpdump captured packets to a file every 3 days. So basically tcpdump should run for 24 hours on day 1 and write the output to Day1.log and similar for Day2 ...
1
vote
1answer
2k views

SQL Server 2008 R2 Writing To Text File

I used to write to text files from SQL Server using the code listed below: DECLARE @FS INT --File System Object DECLARE @OLEResult INT --Result message/code DECLARE @FileID INT ...
1
vote
1answer
423 views

stdout, stderr, and what else? (going insane parsing slapadd output)

I am using slapadd to restore a backup. That backup contains 45k entries which takes a while to restore so I need to get some progress update from slapadd. Luckily for me there is the -v switch which ...
1
vote
2answers
388 views

SSH: Access local file (redirect local file contents) via remote SSH console

I want to redirect the output of a local command (using local files) to a remote command. I know doing something like this is possible: [user@local ~]$ head -c 5 /dev/urandom | ssh ...
1
vote
2answers
795 views

Capture errors in python cronjobs

I have a python script as a cron job that is called like this /path/to/python /path/to/myscript myparam When an error occurs in the script, the cronjob silently fails. When I run the same command ...
1
vote
2answers
988 views

Run batch script showing output & recording output to a file

I know cmd > file.txt to record an output of a command to a file in Windows!. Does anybody know how to run a batch script recording the output to a file AND also showing the output on the command ...
2
votes
2answers
838 views

Scheduling a Perl script with output redirection

I'm trying to schedule a Perl script to be run from the Windows task scheduler and have the output be redirected to a text file. This seems straight forward, but it's not following the redirection, ...
20
votes
5answers
918 views

What could make `>` silently fail in Linux?

I ran this command: python ./manage.py dumpdata partyapp.InvitationTemplate > partyapp_dump.json To dump data into the partyapp_dump.json file. But all the data just gets printed on the screen ...
0
votes
1answer
499 views

What does this Windows 2008 Debug output mean, I found using DebugView and it hangs my app without killing it?

I received a new VM from IT dept. It has Windows 2008 and VMWare tools installed. I have installed my .NET 4 windows service on the machine which does lots of HttpWebRequests. I was looking at ...
5
votes
3answers
6k views

VMware ESXi display guest screen instead of console

I'm using ESXi 4.1 for my virtualitzation platform, and I would like to display one of the guests screen to the host VGA output. Is this possible? I want to do this because my host machine is plugged ...
2
votes
2answers
179 views

Dealing with shell commands that throw away old output

There are a bunch of shell commands that throw away old output. A couple that I have seen are Nose and Hudson. What I mean is that when the program is run, it produces a lot of textual output in the ...
0
votes
2answers
168 views

Reset shell margins or output?

I have two problems, in both cases the problem usually occurs when I resize my terminal client xterm. When ssh'd into a server all the output from commands doesn't scroll. It doesn't happen right ...
0
votes
2answers
541 views

how to prevent log output from PostgreSQL stored procedure?

I am running a number of PostgreSQL scripts that used to produce excessive log output. I managed to reduce most of the output to an acceptable amount by passing --quiet as parameter to the psql ...
6
votes
3answers
3k views

How can I redirect an already running process's stdout/stderr?

(Running on an Ubuntu 10.04 64-bit server) Yesterday, I made the mistake of starting a process (which I didn't realize was going to take several days to run) over SSH without using screen. I've ...
0
votes
1answer
53 views

Capturing text from windows applications

I had an application a while back that would allow me to dump text from any application on screen to a text file. Unfortunately, I used it so rarely that I don't remember what the name of it was. I ...
0
votes
1answer
472 views

How Can I Capture Output From Programs That Use curses?

For example, the pv utility shows me the current rate of data transfer and updates every second. I'd like to save that output to a file, so that I can see at what rate data was being transferred ...
3
votes
1answer
972 views

How to make PowerShell add a new line after executing a command?

Is it possible to somehow configure PowerShell to add a new line after executing a command? IronPython and other console programs which I use doesn't always finish it's output with a \n and because of ...
1
vote
1answer
86 views

Apache2 reload: missing warning message

I try to write a simple php webpage, which lets me reload apach2 config with a single click in the browser. I know, it's a security risk, but I still need it : ) I was able to do so, with a ...
2
votes
1answer
63 views

output MOSS 2010 configuration for documentation purposes

When writing documentations about a system I usually can use the sysinfo command on the command line to output most configurations and Hardware Specs. This saves a lot of time and makes the job of ...
2
votes
1answer
383 views

iptables traffic redirection for multiple public ips

On my linux machine I have: - one physical interface eth0 with the public ip x.x.x.x - one logical interface eth0:0 with the public ip t.t.t.t - BIND DNS listening to t.t.t.t If I ping t.t.t.t from ...
0
votes
1answer
916 views

Redirect output of Python program to /dev/null

I have a Python executable, written and compiled by somebody else, that I simply need to run once halfway down my own bash script. The program uses a text-based UI, therefore waits for input before ...
6
votes
3answers
7k views

PHP Output buffer flush issue on Apache/Linux

I'm running into issues with the PHP output buffer flushing on my Linux web server. The output buffer is maintained correctly and all the right data is pushed to it in my code, but the usual flushing ...
3
votes
2answers
600 views

VMWare Server - Writing files to virtual hard drive performance

We have just moved our infrastructure from physical servers to virtual machines. Everything is running great and we are happy with the result of the move. We have identified one problem, and that is ...
2
votes
1answer
3k views

Perl: hide system output

Using Perl 5.8.8 on Linux, need the output of a perl 'system' command to be hidden. The command in my code is: system("wget", "$url", "-Omy_folder/$date-$target.html", "--user-agent=$useragent"); ...
2
votes
4answers
6k views

Sending cron output to a file with a timestamp in its name

I have a crontab like this on a LAMP setup: 0 0 * * * /some/path/to/a/file.php > $HOME/cron.log 2>&1 This writes the output of the file to cron.log. However, when it runs again, it ...
1
vote
1answer
48 views

Move output files to specified folder manually

I found a problem using libicns's icontainer2icns command, it doesn't have an option to specify output folder but just put all extracted .icns files in current working directory. For example, there ...
1
vote
1answer
2k views

DHCP lease information to file

Is there a command where I can convert the mac address column of the DHCP lease to txt file or CSV? I am setting up mac filtering on a wireless controller but just want to use copy and paste instead ...
10
votes
7answers
5k views

create 'virtual file' from bash command output?

I wonder if there is a way to create a 'virtual file' from a bash output. Example: Let's say I want to email the output of mysqldump as an attachment to an external email address. I can use mutt to ...
13
votes
6answers
22k views

Capturing output of remote process from sysinternal's psexec

I'm trying to capture the output of the remote process from psexec (i.e. not psexec's own output). So, for example I could run "ipconfig" and print the output to a log file. I have tried: psexec ...
4
votes
4answers
2k views

How to pipe program output to the screen AND to a file under Windows

I have a command which I need to inspect in real time (i.e. see its output in the command prompt MyProgram.exe) and to have a log file for later inspection (MyProgram.exe > log.txt) How can I make a ...