Ubuntu :: Store Expect Standard Output To Excel File?

Mar 16, 2011

I am working on telnet session and excuting commands. I am able to redirect or store expect output to log file but now i want to store in excel file like ispreadsheet showing details of commands and its responses

View 2 Replies


ADVERTISEMENT

General :: Store The Output Of Date And Watch Command To A File

Jun 15, 2011

I am trying to watch a command and try to log it into a file. I tried

watch -t -n 10 "(date '+TIME:%H:%M:%S'
; ps aux | grep "pattern" | wc -l)" >>
logfile

and am expecting a result like

TIME: 10:32:30 12
TIME: 10:32:40 18
TIME: 10:32:50 2

to be stored in logfile. However, when the logfile has unprintable characters in in. How do I get this kind of output from the command li

View 4 Replies View Related

Software :: MIDI File - No Audio Output From Standard PC Soundcard?

Aug 6, 2011

have recently installed CentOS 5.6 Final on TWO DIFFERENT desktop PC's, and, on EITHER ONE, I can not get any sound output when using KMid to play a "standard .mid file (the file I am using to experiment with is "Canyon.mid", from the Windoze Media directory, a fairly standard midi audio file, I should think?!). I have normal audio output on both of these machines (.mp3 files, system sounds, etc.), so the specific sound cards are NOT the issue, here!I am thinking I must be missing something, as both of these PC's are completely different CPU types, etc. as well. The only significant similiarity in the two machines is the complete lack of MIDI audio output!And, yea, the soundcards are BOTH MPU-401 compatible, and they both have irq's assigned to this port (or, maybe just one has an irq assigned, I will have to double check...).

View 2 Replies View Related

General :: Program That Reads Multiple Pipes / File Descriptors And Writes To Standard Output

Feb 23, 2011

Is there already a program that reads multiple pipes or file descriptors and writes to the standard output (not splitting lines).Like cat, but reading all files simultaneously and preserving lines.It is needed to avoid coding of select/epoll loops or using multithreading in simple programs. Like "select loop for bash".

View 1 Replies View Related

Programming :: Find Command With Standard Error Output And Mail Error File

Nov 11, 2010

We make everyday a DB Mysql backup on Linux redhat Enterprise. We are using a bash shell script (and putting it in the crontab) to execute it automatically everyday. We added a line to this script telling, once the backup has completed, to find old backup files (stored on hard disk after each backup) older than x days to remove them. We use the find command (search for file type) with the mtime option and in combination with rm command. Everything runs ok but we also want to add some new code to the same line: If find command cannot find anything or fails, for example if it cannot delete file or fails, send the error message (standard error output) to an error file (like error000001 and increasing) and mail the errorxxxx file to an email address for example to admin@companyname.com. What would be the code for this issue to add it to our find command in the same bash shell script??

View 2 Replies View Related

Fedora Networking :: Sort Of "standard" Performance I Should Expect ?

Sep 17, 2009

I have a WRT610N router which has an inbuilt media server. The cool thing is, you get 2 wireless networks, so you can label one as abg & one as N. I've been ftp'ing files from the media server, which is a really good way of testing wireless performance. I was just wondering what sort of performance you should see from 54Mbps & N ?

Under FC11 I see anything between 1500KB/sec download & 2400KB/sec download when it's on the N band (5GHZ) but reports 54Mbps connection. My mac on the other hand pulls around 3000KB/sec transfer on the N band.

I was just wondering what sort of "standard" performance I should expect ? I'm fairly sure that linux latest kernel, the 5GHZ router & Intel Corporation PRO/Wireless 4965 are not connecting N band. Searches on the news groups shows people asking what G band, N band is, but no ball park, expect these figuers.

View 3 Replies View Related

Programming :: Expect: Prevent Output From Spawned Process To Appear On Stdout?

Jul 3, 2009

I have this expect process:

Code:
spawn -noecho telnet my.host.com
expect {

[code]...

View 3 Replies View Related

Ubuntu :: Can't Import A File In A Spreadsheet (Excel File)?

Oct 5, 2010

I have a file with ".tgff" format that a piece of it, is as below (this file is for describing a benchmark in hardware design):

Code:
# AMD ElanSC520-133 MHz
@PROC 0 {

[code]....

View 1 Replies View Related

General :: Any Way To Store Output Of Command Into Variable?

Mar 3, 2010

I tried using the tail command in my shell script and storing that value in a variable a but an error keeps coming. Is there any other way to store the output of a command into a variable. Cannot Read text from text file and store it in a variable using shell script. The thing is I need a number from the file new.txt and use that number in my script

#!/bin/bash
a = `tail -1 new.txt|head -n 1`
echo $a

View 2 Replies View Related

General :: Need To Store Output Of Bitset() In A Variable / Possible In C++?

Mar 5, 2010

I need to store the output of bitset() in a variable ... is it possible in c++?

View 1 Replies View Related

Programming :: Store Output Of Command With Pipes?

Jan 20, 2011

I need to find one RUNNING word in latest created logs.
and as soon as i will get RUNNING WORD , i have to execute another Unix Command.

I wrote following script code...

View 3 Replies View Related

Ubuntu :: Good Expect Tutorial For Programing With Expect?

Nov 2, 2010

I'm trying to Use Expect to automate a curl function. basically I don't want to type enter for my script to run. Can anyone point me to a good Expect tutorial?

View 1 Replies View Related

General :: Clone Standard Output To /dev/tty0?

Jan 10, 2011

I'm working on a SBC9261 board with touchscreen, running Linux 2.6.24./dev/ttyS0 is the standard output and /dev/tty0 is the console on the touchscreen.What I would like to do is to clone the standard output to the touchscreen, so the console would be displayed twice.

It would be like :

Code:

~ $ ./whatEverScript > /dev/tty0

but the output would also appear on /dev/ttyS0.

View 2 Replies View Related

Red Hat / Fedora :: Attach An Ordinary File As Well As Excel File While Sending Mail To A Particular User?

Dec 21, 2010

How to attach an ordinary file as well as Excel file while sending mail to a particular user in red hat.

View 1 Replies View Related

Programming :: /usr/bin/expect : Script To Check Server Load Using Both Expect And Bash?

Jul 27, 2010

I am trying to make a script that can be used to check server load on a remote server and produces sound on our local machine, when server load exceeds a particular limit.1. I want to execute command uptime or uptime | awk '{print$10}'on the remote server and store the result in a variable(say x), and later use it in the bash script.

Bash Part
#!/bin/bash
x=$(/root/Desktop/exp)

[code]...

View 1 Replies View Related

Programming :: Receive Command Output And Store It To A Variable?

Apr 3, 2010

Suppose I want to account number of files beginning with abc , I can use "ls 'abc* | grep abc | wc -l", this will return me a number.
I want to store this number in a variable, say var1, so I tried
1. "ls 'abc* | grep abc | wc -l |read var1", but this didn't work as var1 has no value somehow.
2. var1='ls 'abc* | grep abc | wc -l', this just assign the entire string "ls 'abc* | grep abc | wc -l" to var1, which is not I wanted.

I don't want to store the value to a temporary file and then read the value from that file. I think there should be a direct way to get the value, but don't know how. I know in tcsh, one can just use set var1='ls 'abc* | grep abc | wc -l', but it also doesn't work in bash. Can anyone give any clue about this?

View 5 Replies View Related

Programming :: Direct Standard Output From Find Command?

Mar 26, 2010

I'm trying to pull out sections from a bunch of files. For one file, I use:

Code:
sed '/string1/,/string2/ !d' <filename.ext >newfilename.ext
to pull out everything between two strings in the original file and put them in a new file.

[code]....

View 3 Replies View Related

CentOS 5 :: Output Of 'yum List Installed' From A Standard 5.1 Installation

Mar 22, 2009

I would like to get the output from 'yum list installed' from a standard CentOS 5.1 32bit installation on a Intel desktop PC. I would like to do a diff with my 'yum list installed' to figure out exactly what my company customized. I know the docs here have the list of added, deleted and updated packages going from 5.0 to 5.1, but is there a complete 'yum list installed' list somewhere?

View 1 Replies View Related

General :: Can't Import A File In A Spreadsheet (Excel File)?

Oct 5, 2010

I have a file with ".tgff" format that a piece of it, is as belowthis file is fordescribing a benchmark in hardware design)

Code:
# AMD ElanSC520-133 MHz
@PROC 0 {

[code]...

View 5 Replies View Related

General :: Expect: Line Seems To Match Exactly However Expect Thinks Not?

Jun 16, 2010

I am writing an expect script. At a certain point there is a rule that produces this debugging output:

Code:

expect: does " Address or name of remote host [x.x.x.x]? " (spawn_id exp8) match glob pattern " Address or name of remote host [x.x.x.x]? "? no This just times out When I use -exact for the expect keyword it does work What am I doing wrong? THe first should also match in my opinion because it is equal as well. Even if I remove the I still have the same issue if I try without -exact. I don't understand. I tried removing the but still got the same.

View 5 Replies View Related

Fedora :: Error - Courier-imap Standard Output: Broken Pipe

Jul 22, 2010

I'm following the "The Perfect Server - Fedora12 x86_64 [ISPConfig 3]" instructions and I am encountering an error when trying to build the rpm for courier-imap (from page 4 of the HOWTO).

The command I run is:

Code:

rpmbuild -ta courier-imap-4.6.0.tar.bz2

The error is below:

Code:

INFO: LOGIN, user=confmdtest, ip=[127.0.0.1], port=[0], protocol=SMAP1
INFO: LOGOUT, user=confmdtest, ip=[127.0.0.1], headers=0, body=0, rcvd=26, sent=610, time=0
sort: fflush failed: standard output: Broken pipe

[code]....

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.85697 (%build)

View 3 Replies View Related

Ubuntu :: Repair A Corrupted Excel File?

Jul 2, 2010

What Linux software can repair a corrupted excel file? I can't find anything useful in google or searching with synaptic.

View 5 Replies View Related

General :: View WINDOW Excel File Without Using GUI?

Nov 14, 2010

view WINDOW excel file without using GUI

View 1 Replies View Related

General :: Tools To Change Csv File To Excel?

Feb 15, 2011

I would like to find a tools to change csv file to excel , I tried google , there are some tools can do it , but the file have some specical character and Chinese character , can advise what tools is good for it ?

another that , I have one specical requirement , I would like the tools can change the date format of a specific column ( eg. from mm-dd-yy to dd/mm/yy ) , is there any tools can do that ?

View 12 Replies View Related

Programming :: Can't Write Header To Excel File?

Jan 15, 2010

I am having trouble getting some code to work. It takes an input file (csv) and converts it to an XLS. The problem is that I can't seem to get a header to be printed first...

Code:
use Spreadsheet::WriteExcel;
my $input = $ARGV[0];

[code]...

View 5 Replies View Related

General :: Use System Tools To Convert Csv File To Excel?

Jan 14, 2011

We would like to use linux tools to convert csv file to excel file , can advise any simple tools can do that ?

View 8 Replies View Related

Software :: Manipulate Text File To Allow Import To Excel?

Jun 11, 2010

Have managed to create a simple script to poll the various printers we have at our company for a page count via SNMP. At the moment the script echos the printer name to a text file and then the snmp output is appended to the next line. In my rush I thought by using sed to add a comma to the end of each line would mean it would import in to excel nicely. So rather than having:

Printer 1,
45536,
Printer 2,

[code]...

View 3 Replies View Related

Debian :: Import List From Excel File To Create Many Users

Sep 22, 2015

I'm working in a school and we have a Apple server, we have many problem with it. So, I would install a linux server instead.

Anyway, there is just one big problem (or I miss a simple tip to do it )

We have 1300 students. If I must create them one by one, that will take a lot of time. Actually with the apple server, we can go on a web interface & import an excel list with theses columns :

"Name", "Login", "Password", "Class", "Group", "HDD Space", "Print quota", "Internet access or not", etc ...

Due to this tool, I can upload an excel files with my 1300 students & a couple hours after, they have an account with a personal space & a shared space with their class.

My question is : This tool exist on Debian/Linux world ?

View 7 Replies View Related

Programming :: Open Source Solution To Convert Pdf File To Excel Document?

Mar 2, 2011

Looking for an open source solution to convert pdf file to excel document.

View 1 Replies View Related

Programming :: Expect/TCL Logging - Create A Clean Log File?

Apr 14, 2011

I've written an Expect script that assists with change management on Cisco devices. The script creates log files for pre-change, the change itself, and post-change. Each log and its commands is triggered by a ! command. For example:

Code:

./dochange.exp hostname
<script spawns bash, user SSHes to hostname>
!PRE

[code]....

All of this works fine. My big hair-pulling hiccup is that the resulting log files are filled with raw backspace characters! I am using log_file to log the output from the script. I stop and restart logging with a new file when needed. However, the log files are pretty much unusable. After doing some research, it looks like log_file sends output to the file in real-time, unbuffered. When I hit a key, it's immediately sent to the log. What I would like is for only the resulting string to go to the log. If I start to type 'reload' and instead type 'show run', I don't want 'reload' to be listed in the log at all.

View 1 Replies View Related







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