Programming :: Display Content Of Txt File In Xbmc?

Apr 25, 2011

go about developing this add-on. i am testing this on my xbmc-live set-up; i am fairly affluent in bash/ c but unfortunately i dont have experience with python.i trimmed the data using this bash 1-liner so the output looks like:

xbmc@XBMCLive:~$ wget -q --output-document=- | sed -n 3p | tr '<' "
" | egrep "(title_bar|id=link_1_theater|class=info|mid=|Rated|class=times|fandango)" | grep


View 2 Replies


Programming :: Use Echo To Display The Content Of A Variable?

Jan 4, 2010

I have a problem to use echo to display the content of a variable.

This is what I do:

echo $USAGE

When I run this little script I get the following output:

Usage: name [OPTIONS] R

So I think that [DI might be some sort of escape sequence. But I do not know how to unescape it. Does anyone have a hint for me?

View 14 Replies View Related

Programming :: Sed - Save Output To File With Filename From Content Of Another File?

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 Ive 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

Programming :: Copy One File Content To Multiple File

May 28, 2010

I wanted to copy one file to multiple new files. I have an idea to write a script and do the operation. But here i m looking for any particular command to do this operation.

View 1 Replies View Related

Programming :: C - Can't Print In Screen The Content Of File

Mar 20, 2010

why this code can't print in the while loop the content of the file ?


#include <stdio.h>
int main()
FILE *fp;


View 7 Replies View Related

Programming :: Iterate The Content Of A File In The Shell Script?

May 29, 2010

i need to check group of URLs and there https requests from browser. Recently i got some command line web browsers to know the HTTPS status of the URL like curl, wget etc... Now all of i need to do is write a shell script. I will put all my URLs in a text file and my shell script should read each URL one by one and log the status along with the corresponding URL.

Sample output:

./ url.txt
1. site - 200 OK

View 6 Replies View Related

Programming :: Remove Many Lines Based On Content Of Other File

Jun 21, 2011

I a csv-file (A.csv) with a total of 4.600.000 lines. Thats to many and only a few is necessary. I have a txt-file with 150 lines (X.txt) (all lines is dataset from a mainframe and looks like abc.def.123.456. How do I remove lines from A.csv where none of the dataset from x.txt is present?

View 13 Replies View Related

Ubuntu :: Every Time Open A .conf File It Pops The "Do You Want To Run Or Display Its Content?"

Sep 16, 2010

I'm working with .conf files which I need to edit (with gedit for example) and an .sh file which I need to run occasionally.

And every time I open a .conf file it pops the "Do you want to run or display its content?" question.

I tried to configure Nautilus to stop prompting me every time by setting the Edit->Preferences->Behavior to Run executable text files when they are opened.

But now every time I try to run the .sh file it opens it in gedit instead of running it.

Is there anyway to set the behavior for specific file types?

Like so it'd open the .conf files in a text editor and run the .sh files?

(Maybe I should mention that I'm running Ubuntu 10.04 with Gnome)

View 5 Replies View Related

Programming :: How To Write Using Fwrite Without Affecting Existing Content Of File?

Oct 30, 2010

How can I write to a file multiple times using fwrite without affecting the previous writes?The method shown below accepts a file name, buffer and offset. The method opens the file in reading/writing mode and writes the content of the buffer at offset.

View 1 Replies View Related

Programming :: Lilypond Parser For Python - Typeset The Content Of File

Nov 12, 2009

I'm woring on a personal research project and would like to know if there are lilypond parsers for python available or I'll have to create my own. Just in case you are wondering: I don't need to typeset the content of the lilypond file, just understand what's written in the file (what notes, what duration, when in time to play each one, etc). [url]

View 1 Replies View Related

General :: Dividing Content Of One File By Content Of Another?

Apr 12, 2011

If you have the value 100 in File1 and the value 5 in File2, how do you write a script to divide the 100 in File1 by the 5 in File2 in Linux Bash Shell?The operating system I am using is Ubuntu 10 and object is to write a script to accomplish this task.

View 5 Replies View Related

Programming :: Bash - Read Content Of File To Variable And Use This Variable In For Loop ?

Aug 21, 2009

I'm trying to read content of file to variable and use this variable in for loop. The problem is, when I have c++ comment style in file - /*. Spaces in line are also interpreted as separated lines.

For example:


Changing $files to "$files" eliminate these problems but causes that whole content of variable is treated as one string (one execution of loop).

View 6 Replies View Related

Red Hat / Fedora :: Display Different Content On Different Monitors?

Jul 26, 2009

I am currently using and working on Fedora 10 and have couple of monitors set up to itNow, I want to display different content on different monitors (not the same content on all monitors). It should keep displaying Pictures and/or videos with a certain intervals of time as soon as the fedora loads. How should make this happen.

View 5 Replies View Related

Programming :: Check If The Content Of A File Is "1"?

Feb 7, 2010

i want to close the program if the content of the file /tmp/file_name is 1 (just the number 1).

dont need to check all the time, just when start the program.

something like this:

"read the /tmp/file_name"
"check if the content of the file_name is 1"
"if not, do something"

what i need is very simple to do in shell script:

go=`cat /tmp/file_test` # "cat /tmp/file_test" read the content of the file_test
if [ "$go" -eq "1" ]; then # if the content of the file_test is 1
echo "ok, ready to exit now"; # now i can put the exit command

but i dont know how to do the same thing in C...

View 11 Replies View Related

Fedora :: Thunderbird Does Not Display Message Content+

Jul 31, 2010

I recently got the problem that Thunderbird does not displays the messages anymore. The e-mails are downloaded form the server, a new email warning is given, but the e-mail cannot be displayed (in fact it is not loaded in the message window. I could only see the TB start page). I cannot even see the old messages.

However, when use "see message source" I can see the e-mails.

I also noticed this message in the error console:

server does not support RFC 5746, see CVE-2009-3555

I use Fedora 12 + thunderbird 3.0.6-1

On another linux box F9+ThB 2.0.0 I do not have that issue.

Today I upgraded to Fedora 13 + TB 3.1.1. This should be the latest one, but I still cannot see the message.

Also, on F13 I got another issue with Firefox 3.6.7. When I switch between the tabs, the tabs will turn black and will not get back to normal for 10-15 sec. It looks liek a random effect because often only part fo the page turns black. This issue appear in the windows of TB 3.1.1 since updated to F13.

My hardware is a Sony SR49 laptop with ATI mobility Radeon HD3470

Have Google chrome and this black page issue is not present. The same with Evolution mail, but I do not like it.

View 1 Replies View Related

OpenSUSE :: 11.4 - Apache Cannot Display Content Anymore

Jun 4, 2011

I have a fresh install OpenSuSE 11.4 installation. I have install Apache 2 ,I have change the content on the owner and group to chown wwwrun.nobody Directory /srv/www/htdocs. Now apache cannot display the content anymore there is no error in the error_log. If I change the content to my user the content is displayed. Why and how can I fix this the permission are the same as on the previous web server and I'm using index.php as the index page..

View 9 Replies View Related

Ubuntu Networking :: On Server 10.04 - Two Different Nfs Share Display Same Content?

May 14, 2010

This server is for dhcp and sharing purposes.I can actually access one nfs share via other ubuntu and osx clients on the network, then I configured another share with different mount point (different drive, different forlder, different contents).The problem is: when I connect form a client to the new one it displays the same exact content of the first share. It seems that is mounting the same share on a different mount point on the client and exporting the shares via the exportfs -ra command doesn't solve nothing.This is my fstab file

proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation


View 1 Replies View Related

General :: Display The Last Email Content With Configured Fetchmail?

Mar 11, 2011

I would like to see the last received IMAP email and its content with Fetchmail. Is it possible?

View 3 Replies View Related

Programming :: C - Open A Txt File And Then Display The Data?

Oct 12, 2010

i want to open a txt file and then read line by line and display data with first line and label it 1 and then incremented by 1 for each additional line.

View 14 Replies View Related

OpenSUSE :: Kmail Does Not Display Local Folder Content After Akonadi Migration

Feb 17, 2011

I run opensuse 11.3/KDE:Factory. Recently, kmail updated to using akonadi. The following problem came up. My local emails are now managed by a "local folders" component of akonadi. The folder structure is displayed correctly in Kmail. However, no emails are shown for some folders. Emails still live in the .kde4/share/app/kmail directory hierarchy and can be imported into a new folder after moving them somewhere else. However, even after a fresh import sometimes emails are no longer recognized.

View 2 Replies View Related

General :: Ubuntu Etc/profile: Environmental Variable Doesn't Display Content?

Jul 28, 2011

i am trying to declare an environmental variable in the /etc/profile' (as per the tutorial i'm following) but when i declare it and do an echo i get nothing.Here's what i've done so far..nside /etc/profile:

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ -d /etc/profile.d ]; then


View 12 Replies View Related

Programming :: Bash Script: Order And Display On External File

Mar 12, 2010

I'd like to create a script which allows me to order its data (let's say: Name, age, department and work start date) by date. And display the result in another file.

View 1 Replies View Related

Programming :: Use Zenity In A Bash Script To Display A .csv File Using '--list'?

Jul 22, 2010

I'm trying to use zenity in a bash script to display a .csv file using '--list' to allow the user to edit some of the values.I can display it fine but i'm unsure how to edit the data? all i can get is whichever line is highlited when hitting ok on the zenity dialog to print.the data in the csv is arranged:


View 1 Replies View Related

Programming :: Bash Ambiguous Redirect - Redirect One Command Output Which Will Be Treat As A Content Of File For Another Command?

Mar 9, 2011

I am trying to grep multiple numbers from file, grep does have the -f option for that.

Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with

Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?

View 2 Replies View Related

Debian :: Append File Content In Another File When Pattern Matches

Feb 5, 2010

I have a file, say abc.txt, whit some text lines.The I have a second file, say 123.txt where at a certain point one can read "WORD".I would like to append the whole content of abc.txt (as it appears in abc.txt) in the line after "WORD".

View 1 Replies View Related

General :: Searching Content Of The File Using File Browser Nautilus?

May 27, 2011

I'm using rhel6. Using File Browser Nautilus 2.28.4 I could easily locate any file I'm interested in by it name. I'd like to use this File Browser to locate the file name based on it content e.g. based on some word in the text file. It doesn't work for me that way ... My question: does Nautilus support the search of file based on it content or only based on the name of the file itself?

View 4 Replies View Related

Ubuntu :: Run "start-tor-browser"or Display Its Content"start-tor-browser" Is An Executable Text File"

Apr 6, 2011

Ok so i have the tor browser bundle but when clicking start-tor-browser. I get : "Do you want to run "start-tor-browser", or display its content" ,"start-tor-browser" is an executable text file." So i click run but Vidalia doesn't start and nothing happens.

View 2 Replies View Related

Ubuntu Multimedia :: AVI File Shrinked / When Watched In XBMC Or Movie Player

Jun 15, 2010

I have one movie file, its dimension is 704*400, 1.76 ratio.When I play it in XBMC or Movie Player, it looks shrinker, square (100% not 1.76 ratio).I tried to watch it in VLC as well, and it work fine there, having correct dimension.Whats wrong with this file or XBMC and Movie Player?

View 2 Replies View Related

Programming :: Read Content From Net In Python?

Jan 7, 2011

i made a program to read from a specific site whats on tv in that day.My question is if some of you have an idee how can i figure it out,what are movies,what are sports,what are shows ?

View 3 Replies View Related

Programming :: (PHP) Dynamic Or Static Content Generation

May 12, 2011

My project looks like this:

The Team [no-page]
Projects [no-page]
-Coding [no-page]
-Desing [no-page]
-Security [no-page]

Note: the Code/Design/Security projects pages (A,B,C,D...) will be at start around 35 pages, and will grow. My index.php is something like this:
PHP Code: .....

What I would like to know is how to build the content (the home-main.php)? Do it dynamically based on a link something like this index.php?page=coding_b, and put in the index.php page a number of 35 if/else statements to cover all the project pages or ... static, creating every page for the projects menu when I create the menu? I check if a page 'pro-co-a.php' exists, if not I create it based on some template and do the query to get the content from db or? How to organize the pages, if using static page?

View 5 Replies View Related

Copyrights 2005-15, All rights reserved