Ubuntu :: Grab Information From Mediainfo And Output It To A File?
May 19, 2010
I want to grab information from mediainfo and output it to a file with text already in it.
How would I do that?
Code:
#declaring the variables
filename=$1
DATE=`mediainfo "$filename" | grep "Recorded date" | awk -F" : " '{ print $2 }' | tr -d '
[Code].....
View 1 Replies
ADVERTISEMENT
Sep 10, 2010
Consider this PHP Script or just skip to the Output:
Code
Code:
-bash-2.05b# cat myDate.php
#!/usr/bin/php -q
<?php
[code]....
View 10 Replies
View Related
Jan 25, 2010
Php file that basically runs a few commands and echoes the output. It's for checking things like temperatures etc, space free.
You can see it in action here: [url]
I've attached the actual php file.
Two questions:
1) What more can I add to it to give me even more information?
2) I want to add hddtemp but it requires sudo to run. How can I get around this?
View 4 Replies
View Related
Mar 18, 2010
I just have a question. I am having problems with my acer extensa 5620z wireless. I went on a few fourms and tried a few things they told me to do and It did not work. My question is this If i install wine can I grab the exe file off of acer website and install it that way?
View 5 Replies
View Related
Jul 28, 2010
Alright, I have a network trace file that I want to parse through.
The file looks like this:
+ 1.002 /NodeList/1/DeviceList/0/$ns3::PointToPointNetDevice/TxQueue/Enqueue ns3::PppHeader (Point-to-Point Protocol: IP (0x0021)) ns3::Ipv4Header (tos 0x0 ttl 62 id 0 protocol 6 offset 0 flags [none] length: 40 10.2.1.1 > 10.1.1.1) ns3::TcpHeader (49153 > 26 [ SYN ] Seq=0 Ack=0 Win=65535)
- 1.002 /NodeList/1/DeviceList/0/$ns3::PointToPointNetDevice/TxQueue/Dequeue ns3::PppHeader (Point-to-Point Protocol: IP (0x0021)) ns3::Ipv4Header (tos 0x0 ttl 62 id 0 protocol 6 offset 0 flags [none] length: 40 10.2.1.1 > 10.1.1.1) ns3::TcpHeader (49153 > 26 [ SYN ] Seq=0 Ack=0 Win=65535)
[Code]....
View 2 Replies
View Related
Mar 18, 2010
I am having problems with my acer extensa 5620z wireless. I went on a few fourms and tried a few things they told me to do and It did not work. My question is this If i install wine can I grab the exe file off of acer website and install it that way?
View 2 Replies
View Related
Dec 23, 2010
I have a script which uses a Menu file (containing several different Menus). I start out with
Code:
Menu=Main
and grep my VRMenuData file for
Code:
$Menu:code:$txtring
where txtring contains the value entered from the keyboard, and cut that line for the code I want executed. So my data looks like:
Quote:
Main:code:1:declare Menu=Download
Main:code:2:soffice -calc VRSched.ods
Main:code:3:echo Load Refresh Menu here
My code acting on the data looks like:
Code:
`grep $Menu:code:$txtring VRMenuData | cut -d: -f4`
When I chose options 1 thru 3, that executes with no problem (Menu=Download does not work). The program sees into field four, but field four is not able to see outside itself. For instance:
Code:
Download:chan:
Download:pitm:1:echo $numpi. Return to Main Menu
Download:pitm:2:
[code]....
is used to generate a numbered list of channels. It could be four or 40. Whatever the number is, I want the next line to read, for example, 32. Return to Main Menu.
Code:
num
is the variable in the script I use to number the list of channels. The number following Download: pitm: is numpi, which should be added to num. How do I take
Code:
Download:pitm:1:echo $numpi. Return to Main Menu
from my VRMenuData file and generate
Code:
32. Return to Main Menu
Code:
$ declare -p Menu
declare -- Menu="Download"
$ declare -p numpi
[code]....
View 3 Replies
View Related
Apr 23, 2011
I have a huge log file of around 3.5 GB and would like to sample random sections in the middle of say 10 MB for the purpose of debugging what my application is doing.
I could use head or tail commands to get the beginning or end of the file, how can I grab an arbitrary portion from the middle of the file? I guess I could do something like head -n 1.75GB | tail -n 10MB but that seems clumsy and I'd need to determine line numbers for the midpoint of the file to get 1.75GB and 10MB line counts.
View 2 Replies
View Related
May 24, 2010
In linux we can make it output bootstrap instructions,
what about windows?
View 2 Replies
View Related
Oct 3, 2009
Consider the two runs of finger command for two different users:
Code:
[root@localhost ~]# finger root
Login: root Name: root
[code]...
View 3 Replies
View Related
May 31, 2010
When I run the rpm package to install mediainfo software I get this warning: mediainfo-gui-0.7.33-1.i386.Fedora_12.rpm: Header V3 DSA signature: NOKEY, key ID dfb2ef23
error: Failed dependencies:
libmediainfo.so.0 is needed by mediainfo-gui-0.7.33-4.1.i386
libmediainfo0 >= 0.7.33 is needed by mediainfo-gui-0.7.33-4.1.i386
libzen.so.0 is needed by mediainfo-gui-0.7.33-4.1.i386
libzen0 >= 0.4.14 is needed by mediainfo-gui-0.7.33-4.1.i386
and I have no idea of how to go on..it asks for elevated prompt but is not able to retrieve dependencies by itself..
View 3 Replies
View Related
Mar 27, 2010
I needed to download the mediainfo package to make a script Movie converter work but wasnt able to .The site suggested [url] dosent seem to be responding for the last 24 hours.I would also need libs libzen0 and libmediainfo but unable to get them from anywhere. From where else i can download them, i use ubuntu 9.10 i386 .
View 3 Replies
View Related
Nov 17, 2010
As I know, lly includes a control file. Takelibfreetype6_2.3.9-5ubuntu0.4_i386.deb for example, its control file includes the following content:
Package: libfreetype6
Source: freetype
Version: 2.3.9-5ubuntu0.4
[code]...
View 2 Replies
View Related
Jun 4, 2010
I have some output on the console on the gnome-terminal.
View 2 Replies
View Related
Apr 22, 2011
I am curious if perhaps I am doing something wrong extracting pages from a pdf doc using pdftk and creating a new file. I am only extracting the odd pages from the file and outputting them to a new file that is now only 20 pages instead of the input's 40 pages, yet the new output file is still 1.4Mb in size, the same as the original.
It seems strange to extract only half the pages of a large document and end up with a result that is the same size. how to streamline the resulting pdf's using pdftk?
BTW this is the command I am using, in case perhaps I am missing an option to optimize file size or something:
Code:
pdftk A=ch15.pdf cat A1-40odd output odd.pdf
View 1 Replies
View Related
Jul 31, 2010
When I view a file in Linux with the 'less' command, I often only get a ":" prompt in the bottom left corner. There's no clue about how long the file will be, or at which location I am currently. When reading manpages with 'man', there's a file title and line number in that corner. And once I hit the end of the file, there's even a percentage shown. I've learned about 'less -m' but it's not that powerful. So what does 'man' differently from 'less'? They appear to be the same viewing programme, except for that file information difference.
View 7 Replies
View Related
Jun 3, 2010
When I try to copy PDF files from one folder to another folder, it give me this error: "Error while copying "2004-SNUG-Europe-paper_...log_DPI_with_SystemC.pdf". There was an error copying the file into /media/CCDCE66BDCE64F70/Backup Master/Heterogeneous_cosimulation/Documentation" "Error splicing file: Input/output error" What is the reason of this error and how can this be fixed?
View 9 Replies
View Related
Jun 29, 2010
I have a 7.2 GB file (VMWare virtual machine file) that I am trying to copy from its original location to the another folder OR to external hard drive...each time I try to do this, I always get the following error after the copying process reach 'exactly' 1.4 GB
Error reading from file input/output error
And I have to either Cancel or Skip
I've tried to split the files to smaller pieces but the idea didn't work as I still get the same error whenever I try to compress/ split or do any operation with this file. how I can copy this file?
View 2 Replies
View Related
Feb 24, 2011
I have a working network Ubuntu 10 Win7 (thanks to you guys on this site).
My last hurdle is how to mount folders or disks from Win7 onto Ubuntu.
I used a tutorial, and got fstab installed I think...
Where do I get the information to PUT IN fstab and WHERE to put it?
Here is my fstab file code...
View 2 Replies
View Related
Nov 2, 2010
How to get under linux (without Wine) such information about Windows EXE/DLL file:
CompanyName
FileVersion
ProductVersion
[code]...
View 11 Replies
View Related
Apr 5, 2010
I have some japanese music files stored on a flash drive that the titles of which are in japanese originally. While in the flash drive, when I go to Properties -> Audio, the title is written in japanese. It does not allow me to edit the file, no matter what permissions I have on it, therefore I can't change the name to english. So, I tried Rhythmbox instead, and transfered the file there. I could change the name, however there is STILL a huge problem.
I have around 300 japanese music files, all of which have to be renamed into english.
I did all this for all of them in Rhythmbox, and clicked "quit" when I was done. When I came back to transfer the files to my MP3 player like usual, I opened Rhythmbox, and...
ALL OF THE FILES WERE STILL IN JAPANESE! It didn't save any of the work I did on editing them. But, I calmed down and thought "oh, you can save playlists! I am sure that if I save them on one, it will keep the edits!" I did this, and it saved nothing. It took me 2 hours to finish the renaming, just to find out that it can't save information edits at all.
View 9 Replies
View Related
Oct 17, 2010
I need a way to create wmv video thumbnails with file information (name, size, resolution, duration) using Ubuntu.
View 6 Replies
View Related
Sep 3, 2009
I'm trying to write a program which would get information from a webpage and display the information on my desktop sort of like a widget. I kind of remember there being something like this already made, but for the life of me I can't remember what it's calledDoes anyone know?
View 1 Replies
View Related
Feb 16, 2011
Why is the info in the (BASH_Profile) file different than (echo $Path). Is the Profile file just there to modify another file and not actually hold information?
View 1 Replies
View Related
Nov 16, 2010
I have many files with info about soft, installed on remote machines.
I need to compare this file with template (soft than must be installed) and output file must content info about software that's not installed.
Code:
Code:
output must be software_name2, becouse it is not installed, but software_name3.2 is good enough becouse version is more than we need.
So, the task is to show lines that is in template and not in source, using simple regular expressions
I use grep
Code:
or
Code:
But it shows me only lines that is in source and not in template etc...
View 1 Replies
View Related
Apr 7, 2010
I want to add some starting information in a file while creation. like if I type vi test.sh
then
#!/bin/bash
will be added automatically.
Somebosy suggest me how to do this ??
View 22 Replies
View Related
May 1, 2011
My script.
This is may script:
Code:
Problem: Output file doest not exclude the values in grep -av
View 3 Replies
View Related
Jul 24, 2010
I am new to shell scripting.What i am trying is to write a shell script which take the input file and output should like as mentioned below.Output file should have data till SOK (marked in red)from every second line and then the selected data(marked in green) from 4th line.So selected data from 2nd and 4th line in one line of O/P file and then similarly selected data from 6th and 8th line in second line of O/P file.Input File:
3c3
< c1111;11.11.11.11;pOK;SOK:abcde;Universe:aa
---
[code]...
View 14 Replies
View Related
Feb 5, 2010
I am using below script to ftp a file to remote machine
Code:
#!/bin/bash
ftp -nv <<EOF
open ${SERVER}
[code]....
When I execute the above file its working fine and displaying output on to the screen. How can I log the output to a file?
View 7 Replies
View Related
Feb 28, 2011
My employer issues pdf files with everyones work schedules. I copy the content and save it as plain text in a file called unformatted (hope to be able to automate this step someday). Im working on a SED script that reduces unformatted to only display what I want to see and saves the result in a file Iïve named formatted. After that I have to manually copy formatted and save it with that days date as a filename e.g. 2011-02-25 or whatever day is scheduled in the pdf, for use on a mobile device (Nokia N900). I noticed that the date occurs on certain lines in the file so I added a line like:
sed -n 's/^Date: (201[1-9])/([0-1][0-9])/([0-3][0-9]).*/1-2-3/p' < unformatted >theDate
That creates a file theDate with the date in it that I wish to use as the filename for this particular instance. So I would like to skip the file formatted all together and have the sed- script write to a new file using the content of the Date as a filename, but how do I make that happen? And of course it would be more elegant if I could skip the intermediate theDate file as well.
View 4 Replies
View Related