Programming :: Program A SH - Bash Program With Zenity To Play Radio Based On A Site?
Feb 15, 2011
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
My code to get url's radio country.htm is:
Code:
View 2 Replies
ADVERTISEMENT
Feb 10, 2010
I need to launch programs in my program and the program can be a script, a Linux executable or even a Windows executable. The first thing i tried is to use xdg-open from my program, but i can't pass arguments to it, otherwise it would have worked perfectly. Is there maybe a way to determine which program is set as default according to the mime-type of the program i want to launch? I also tried kfmclient and gnome-open, they don't allow arguments either.
View 2 Replies
View Related
Oct 18, 2010
On an Ubuntu Server I am running, I wrote a small Ncurses program in GCC. It worked just fine.
Then, I copied the executable over to my Ubuntu 10.10 desktop edition with sftp. No matter what I did, it kept giving the error:
error opening terminal: xterm.
I had copied other non-curses programs and they all ran just fine.
Finally, I copied over the source, recompiled with GCC and voila, the executable now runs fine.
View 6 Replies
View Related
May 9, 2010
I'm trying to write a bash script that helps me building C program then run the C program but I don't know how to make it run.I did like this
Code:
#!/bin/sh
# assuming I've built C program '$output' successfully
[code]....
View 5 Replies
View Related
Apr 29, 2010
I have for example the following IP addresses:
24.172.220.218
41.239.36.19
63.215.202.234
66.176.124.22
[code]....
How can I sort those IP addresses? I want to sort them using the first 3 numbers I also want to count the number of times that address is repeated This is a batch program.
View 4 Replies
View Related
Dec 30, 2010
Trying to do a simple bash script, and having some issues. I am relatively new to bash, and did my best to search, but idk what exactly to search for.
Doesn't work code...
View 6 Replies
View Related
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:
<prod>,<disc>,<qty>,<type>,<location>
View 1 Replies
View Related
Mar 22, 2010
I'm trying to write a bash script program in the Linux command terminal that will write to a fellow user and then continue reading down the program. this is what i have (kind of explains the idea too):
#!/bin/sh
clear
echo "this is before the write command"
write jcummins
this message should go to jerry
echo "the message didn't send and this string will not appear"
echo "it appears it has stopped at the write command"
View 5 Replies
View Related
Jul 22, 2011
I am trying to write a bash script that installs a program fully automated for me. I am stuck at the one part where i need to change a line in one config file. I have tried various syntax for sed and none have worked. Maybe someone can suggest how to go about this. Since the line appears in the middle of the file, I can't use echo or cat. Also the file will be diffrent lengths depending on the install.
The line I need changed is:
I need that changed to:
the last syntax i tried is:
Yes this is for PNP4Nagios on centos 5.6 64bit. If i can get this figured out. I will be willing to post the whole thing for others to use. it will be used to install PNP after a working nagios install is done.
View 11 Replies
View Related
Feb 10, 2011
Everyone knows that it is like impossible to use mplayer to watch an *.html file. OK.
For instance here is a cool example of lot of streaming for firefox
http://watchtvlivestreaming.com/tvlive/b5499
Code...
Anyone is there a talented bright coder, coming from hell -because it is really difficult, to make such console program ?
View 1 Replies
View Related
Jan 15, 2010
Ok so Basically i have 2 questions
1. i know how to create a file with c++ using but is there a way to save it to a specific location on your computer with windows and linux
Code:
2. i need to know how to run/execute/open a file in a c++ program im using and its not working
Code:
View 4 Replies
View Related
May 21, 2010
Is there an Ubuntu program that gives access to Internet radio stations like iTunes?
iTunes radio setting on Mac has hundreds or thousands of internet radio stations that the user can select from and listen to. Is there such an app for Ubuntu? That would be easier than finding all their web sites and bookmarking them.
View 2 Replies
View Related
Oct 21, 2010
I am looking to play a simple sound effect as an event notification in a C program I am working on, but want to do it as simply and easily as possible. Portability is of no concern (this is a Linux-only application) nor is the format of the audio file (the file will be bundled with the application, so I can make the format whatever is necessary).The simplest way seems to be just calling "aplay" from within my program, but I am not sure if this is really a safe approach or not. Is this is a reasonable enough solution for a simple task like this? Other than the program not existing on the host OS (which obviously I would check for on execution), are there any other pitfalls?
View 6 Replies
View Related
Sep 21, 2010
Is there a program, or command, that will allow me to recursively check a web site for broken links?
View 2 Replies
View Related
Aug 21, 2010
I have recently been programming with Qt and slowly getting my head around it.I want to have a pet project to learn some more and then I got to thinking how should I go about this.My question is what is the proper way to program for Linux based GUIs? One of the things I would like to write is a small front end for newspost. I want to include extra stuff like rar and creating pars on the fly. So how should I go about integrating other CLI programs to make my GUI feature rich? I thought of three ways to approach this.
1. Take all source code and throw it into one self containing project. (think this is evil)
2. The GUI will basically assemble CLI commands and call them. This is nice but can very fragile.
3. The GUI will compile against rar-libs and other libs?
I am originally an MS programmer and don't think I should apply same practices toward Linux. So let me know what your opinions are and how you roll out GUIs.
View 3 Replies
View Related
May 4, 2011
I've been given one of these ubiquitous usb-sleep buttons which is basically a supersimple usb-keyboard. It's a big button that sends a SLEEP keypress to the computer when you slam it. But that is pretty boring. I'd love to remap it to do something more fun but I can't figure out how to bind to only the sleep press from the button and not from my ordinary keyboard.
The button identifies as
Bus 001 Device 035: ID 1130:600d Tenx Technology, Inc.
I'd like to know if there's either
a way of mapping a key from a specific keyboard to an action OR a way of remapping the sleep key from a specific keyboard to a new key-code or something like that.
View 1 Replies
View Related
Feb 9, 2010
I currently doing a network emulator program and the features must includes the web-based interface for user configuration. I able to run my program through command line. But I would like to ask how to associate my program to web-based interface for user configuration?
View 8 Replies
View Related
Sep 4, 2011
Could you suggest feature-rich disk-based personal backup program for Linux (and I've seen a few)?
I want to do nightly backups of the whole system and be able to rollback to any of last 7 days. And, it must be incremental backups. What tool should I use? The tutorials I've read about rsync tell only how to store latest incremental backup and I need last 7.
View 3 Replies
View Related
Feb 19, 2010
I used MusicBrainz Picard to tag FLAC and Mp3 files, fixed any necessary genre tags in Rhythmbox, and used EasyTag to rename the actual files.But now I'm interested in using those genre tags as folder names...is there any program that will sort my music into folders based on their genre tags?
View 5 Replies
View Related
Apr 11, 2011
I am looking for a DJ program to use with this OS. I am look for a program like virtual dj to use that will play mp3's. I have seen some programs that will play music, not able to find a song as I have 1,000's of them. So far I have seen ubuntu looks very promising.
View 2 Replies
View Related
May 31, 2011
I like the convenience of having a music player that manages the placement of my music files based on the tags of the files, sorting into a root music folder with Artist/Album/01 - Track Title.mp3 sort of hierarchy. Previously, I was using Banshee for this feature, as even most of the other gui music players don't have this library management feature. Now, I've been trying to use console-based applications, and I have been using mpd + ncmpcpp fairly successfully. When I download new music, it is downloaded to a specific folder, and that's not part of my music collection. My previous workflow would be to open a gui filemanager at the downloaded folder, and drag and drop those songs onto banshee, which would then make a copy of those files in my library hierarchy. Currently, I'm doing the same thing, using Banshee only as a sort of import program, then closing it and updating my mpd database, and there we go.
If at all possible, I'd like to automate this to something where I can define a watch folder, and when some magical program sees new music in said watch folder, it identifies the correct place for the files to be copied into my heirarchy, renaming folders and files to the correct format. I know I've written a lot describing, but I don't actually think this too uncommon a task, and I'm wondering if anyone has a solution for my problem.
View 3 Replies
View Related
Aug 11, 2011
i've installed ubuntu studio on my old pc and it's barely working. (sorry for my language) when i put on player to play a song everything is ok but when i try to make an other program to play sound it doesnt... i saw about the jack server but i can't unterstand what am i suposed to do. the programs that succsessfully play sound are: media player, chrome, mozilla, some games.
View 6 Replies
View Related
May 21, 2011
Is there a way to have a bash script run as a program so you can start it like how you would run apt-get?
View 2 Replies
View Related
May 11, 2011
So I open firefox from my bash shell with:
Code:
firefox google.ca
it opens firefox, I can browse, etc.
Now if I alt-tab back into my shell, i can't enter any commands in the shell.
I know that i can do this if I close firefox, but I want to keep working in my shell with firefox still open.
Is this possible?
View 6 Replies
View Related
Apr 4, 2010
i have a question in my mind.sorry if its irrelevant to this topic.Can i run bash script (which i currently run on cygwin) in linux based web hosting?
View 2 Replies
View Related
Nov 20, 2010
which program can play divx with XSUB subtitle? I've tried movie play and VLC ! didn't work?
View 1 Replies
View Related
May 20, 2011
I start play on linux to use ms office this message keeps popping up before it. Is anything wrong or should be done
View 8 Replies
View Related
Nov 3, 2010
how to interactively operate with program using bash? such as program would ask user to select choice between "a/b/c" and then input enter to confirm? i know i could use
program << EOF
a
EOF
to choise "a", but how to input "enter", so that i could call this program in my script.
View 5 Replies
View Related
Feb 23, 2011
I was wondering whether there is an inbuilt logging system in UNIX?
I ran and installation and the program opened up automatically but I can't find the program executable.
If I could find a log then I could locate this file.
View 9 Replies
View Related
Apr 15, 2011
I have problems to get it work. i have tried to use pm-utils, but it does nothing.
What is need is to kill application, when pc is going into suspend to ram and run that application again on wake. It's a graphical application.
View 1 Replies
View Related