The output tag has no wiki summary.
1
vote
2answers
152 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
156 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
256 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
409 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 ...
0
votes
1answer
314 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
410 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
120 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 ...
1
vote
6answers
1k 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 ...
0
votes
1answer
692 views
Putty -> session does not start login
I have a vServer. Ping and Traceroute are ok.
Now I want to open an ssh session to the vServer with putty.
Yesterday, all was fine! But Today , if I start the session, there is only the console with ...
1
vote
1answer
1k 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
308 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 ...
0
votes
2answers
217 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
310 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
404 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
513 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
869 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
407 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 ...
3
votes
3answers
3k 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
160 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
163 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
331 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 ...
3
votes
2answers
2k 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
50 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
289 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
761 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
68 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
58 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
345 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 ...
0
votes
1answer
664 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
5k 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
546 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
2k 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");
...
1
vote
2answers
3k 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
47 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 ...
7
votes
7answers
2k 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 ...
11
votes
6answers
16k 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
1k 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 ...
