Software :: Bash : Input A Mp3 And Output The Lyrics As Text?

Dec 18, 2010

I am looking for a prgramme that output the lyrics when I give it an mp3...

Code:

fetchlyrics mymp3.mp3

based on its data inside of mp3

View 7 Replies


ADVERTISEMENT

General :: [bash] Output Of One Script Is Input Of Another?

Mar 20, 2010

Now, I have one script called "defcon" defcon gets the current DEFCON level and outputs it using echo.

Code:

#!/bin/bash
DEFCON=`curl -s http://members.tripod.com/~Swat_25/defcon.html | sed -n '/^$/!{s/<[^>]*>//g;p;}' | sed '/^$/d' | grep '[12345]$'`
echo "The current DEFCON level is $DEFCON"

The second script ("tweet") updates my twitter account.

Code:

#!/bin/bash
curl -s -u USER:PASS -d status="$@" http://twitter.com/statuses/update.xml > /dev/null

What I want to do is be able to update my twitter account with the current defcon status (this is really more of a learning thing than something I actually want to be doing). The original script for tweet replaced $@ with $1, but if I use:

tweet `defcon`

it only uses the first word in the string, similarly if I used $2 or $3.So I changed it to $@. The normal function still works, but typing:

tweet `defcon`

updates twitter with nothing.

EDIT I should mention the /dev/null is there to catch the output of curl, otherwise it won't run silently. It still updates twitter normally with the send to /dev/null

View 1 Replies View Related

Red Hat / Fedora :: Change Input/Output Color In Bash?

Jun 5, 2009

When in the interactive envirment, my Input and Output are all mess-up. So i want to color the Input and Output with two different colors.. so i can figure them out..

View 1 Replies View Related

Programming :: Bash: Passing Output To Another Programs Input?

Nov 12, 2009

I am not sure if that Subject really explains it, basically I have a script that executes a CLI java-applet that requires a passphrase from the user. I can easily execute this by issuing the -p argument followed by the passphrase however that shows up on possible logs or at least on the results of the ' ps ' command. If you do not supply this -p argument it provides a new line with the echo " Enter Passphrase: " and asks for input.

how can I provide a result/input for the Passphrase request and is it still possible to throw this application in the background with the ' & ' following the command? I have seen a few examples that show a /bin/expect that expects a result and sends a command however I would like to refrain from any extra dependencies. Example of Regular Execution of application:

Code:

$ /usr/local/***/**** -u USERNAME -r Default-Realm -f certificate.der
Password:

View 6 Replies View Related

Programming :: Bash: Feeding Input To A Script From A Text File?

Nov 17, 2010

I have a script which checks on my jobs that run on some cluster.The script, "script.sh", takes as an input the job-id for the job to be checked. Sometimes I have 100s of jobs and I want to check them all (for successful completion.) I could put these job-ids into a text file, "job-id.txt", each id in its own line.For each job-id, the script would ask me few questions (with a yes or no answers) to see if I want to do some other checks for each job-id.I want to know how may I direct my job-ids from this text file into the script one job-id at a time.

View 14 Replies View Related

Ubuntu :: Bash Input - Output Error - Entire Computer Came Screeching To A Halt

Jul 21, 2010

I am having a strange problem I've never encountered before. I have an Asus Eee S101 10.1" netbook with the 32GB SSD. I installed Ubuntu 10.04 Netbook Edition.

The other day, I was browsing with Firefox, when suddenly the entire computer came screeching to a halt. Had to power it down with the power button. After this happened, I have been unable to use the same Firefox profile I had been using. I had to start Firefox from the command line with the -ProfileManager switch, then create a new profile to keep browsing.

I wanted to completely get rid of the old profile, so from the Profile Manager I tried to delete the old one. Computer hung, had to reboot with the power switch. I then tried to browse to the .mozilla/firefox directory and delete the profile's directory there, from both Nautilus and the command line. Both times, the computer froze.

I tried a few more times, and the couple of times the computer didn't freeze, I got an error from the command line saying a Bash input/output error. After this error appeared, it would appear no matter what command I ran - I couldn't even run a sudo reboot now.

I can create/delete other files and directories, just not that Firefox profile.

View 8 Replies View Related

General :: Will Not Reboot After Install (Arch) - -bash: /sbin/reboot: Input/output Error

Oct 7, 2010

I am using sda1 as /, which is a bootable drive. I do not know if my problem is that I did not create a /boot drive. After removing the iso dvd, I tried to reboot and I get this back: -bash: /sbin/reboot: input/output error Then it returns me to the terminal prompt.

View 6 Replies View Related

Programming :: Sed To Output Block Of Text If Specified Text Is Matched?

Feb 13, 2010

I am trying to find sed command combination to print out the "start command" line, the id line and all lines between "details" and "stop command" only if "error" exists. Here's the original output (test.txt):

start command
id 1
kajsdlfjsalj

[code]...

View 3 Replies View Related

Programming :: Bash Text To Variable Accessing Individual Text Lines?

May 2, 2010

i am on processing text tasks And i found that if you assign a text to a variable is chomp'ed automatically the newline

Code:

variable=$(cat file.txt)

The problem is i can only access the items/lines using:

Code:

for line in $variable
do
echo $line
# Other commands
done

how do i convert this to an indexed array. More importantly, how do i get access to individual $line[0], ..., $line[n] Another thing, if the file.txt, has lines with spaces it is a mess using the for...in..., but echoing prints line by line...o_0

View 11 Replies View Related

Ubuntu :: Sort The Output To A Text File So That It Prints To The Text File At 1 Process Per Line?

Feb 6, 2011

im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.

echo $(ps aux) >>out

The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.

View 5 Replies View Related

Ubuntu :: Output To Input ?

Jan 7, 2011

What does this command mean? Is this some sort of a pipe where output of one program goes to input of another?

Code:

View 4 Replies View Related

Ubuntu :: 5 - Input - Output Error

Nov 19, 2010

Today went from jaunty to koala then to lucid. The package manager doesnt work nothing works in terminal for apt-get or anything getting the message ---->

View 1 Replies View Related

Ubuntu :: SSD -- /dev/sda: Input/output Error?

Jun 25, 2011

Quote:Error benchmarking: helper exited with exit code 1: Error reading 27099136 bytes at 2509258752 from /dev/sda: Input/output errorthis issue is also preventing me from making a copy/backup of the partition with gpartedwhich i decided i should do since i had a scare when booting todayunable to mount / i said fix itthen it said /var was not readyi waited it became readyi am running 10.04.2 would upgrading the kernel to get trim support fix it?

Code:
sudo fsck -t ext4 /dev/sda1
fsck from util-linux-ng 2.17.2
e2fsck 1.41.14 (22-Dec-2010)
System: clean, 247383/983040 files, 1394162/3907803 blocks
Solution: drive is under warranty and it needs to be used this is not software problem

View 5 Replies View Related

Fedora :: Input / Output Error On NTFS HDD

Mar 25, 2011

My dad is out of town for a while, so I've been using his computer to rip my DVDs with Handbrake. He has Windows Vista installed, so I did a full installation of Fedora 13 on a thumb drive and just run everything off of that. However, when I went to delete some of the encoded videos after I had moved them to my computer, I got a system error that said 'can't delete files: I/O error.' Now, if I try to boot up Windows, his computer is stuck on a black screen checking a bunch of dlls. He'll be back in a couple of weeks, so I'd like to have it fixed by then.

View 2 Replies View Related

Ubuntu :: Cannot Access [dir]: Input/output Error?

Jun 9, 2010

I have dir in my HD that is very important to me,but when I try cd commad to go in the dirI got this message:cannot access `./Lab': Input/output erroralso when use ls to view the currently dir and the other dir's also I got this message:"ls: cannot access Lab: Input/output errorLab"with touch:touch: cannot touch `Lab': Input/output errorwith mkdir:mkdir: cannot create directory `Lab': Input/output error

View 3 Replies View Related

Red Hat / Fedora :: Input - Output Erro When Cloning ?

Apr 27, 2010

I'm trying to clone 2 raid sets using dd.( have done this successfully many times in the past)
this time however running into issues.

dd stops with a 'input/output error'

dmesg shows:

A little above this i find

Background: this is a proliant sevrer & has got XFS filesystem on it. Last weeek it showed some XFS errors, tried to do a repair but didnt work.So thought would clone the raid set from a good 'source' server. ( we need this for a test purpose )

Before cloning I deleted raid & created again. everything looked OK, all disks showed as GOOD, but then the dd copy failed with above msg. I'm sure the source raid set is in good condition. Any thoughts on what could be wrong here & how I may be able to recover it?

View 2 Replies View Related

General :: Dd Block Input/output Size?

Mar 8, 2010

I'm trying trying to understand dd, and I'd like to know why frequently do we have to use a block read/write size, like "dd bs=1024", "dd ibs=512"... If it executes the operation byte by byte, isn't it irrelevant? What is this block size then?

View 6 Replies View Related

Software :: Can't Copy DVD With Dd - Input/output Error

Jul 13, 2010

Can't copy DVD with dd - Input/output error

Code:
kevin@orangebox:~$ dd if=/dev/dvd of=~/Videos/backup.iso bs=2048 count=4169919
dd: reading `/dev/dvd': Input/output error
191160+0 records in
191160+0 records out
391495680 bytes (391 MB) copied, 154.38 s, 2.5 MB/s

View 4 Replies View Related

Software :: Taking Output From Lspci And Using As Input

Mar 25, 2011

I want to take the output from lspci | grep VGA and grab the BusID's of each video card installed on a server. I then want to take these BusID's and convert them to decimal (Which I can do fine). I then want to take these numbers and have them as the input of a few perl search and replace commands for xorg.conf. I'm mostly stuck on trying to get each BusID that is outputted from lspci and using them as inputs (or variables).

View 1 Replies View Related

Programming :: C Program To Get Input Of Array And Output It

Aug 14, 2010

I am creating a 15 integer array which is input from the user and outputted for the.

Ex.
Enter the array values: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Your values are: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Code:

View 4 Replies View Related

Programming :: Giving Output Of A Command As The Input To Another

Sep 7, 2010

While making a shell ,there is the following problem Im facing:

I am expecting the user to enter commands in the following format :

I am to separate these and the output of ls -l should be given as input to grep and the output of both to more.

But I am allowed (by our instructor) to use dup/dup2 or any other command(but not pipe or tees).

How to connect the file descriptors after successful execution of each command?

View 5 Replies View Related

CentOS 5 :: EBS Volume - Input / Output Error

Feb 24, 2011

We are running an C++ application in AWS EC2 instance (CentOS 5.4) mounted with an EBS Volume (say /mymountpoint). We do more simultaneous writes to the EBS Volume from our application. But at some point we get 'ERROR: Input/output error'. After this, 'ls -l /mymountpoint' command itself fails with the i/o error. The filesystem which we use for the EBS Volume is xfs. I unmounted the drive and done xfs_check and again mounted the drive. Now, everything seems to be working fine. But the issue still persists everytime when we do simultaneous writes.

I believe the following details will be useful,
[root@domU-12-31-39-07-81-36 StoreGrid]# cat /etc/redhat-release
CentOS release 5.4 (Final) .....

Output of dmesg :
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
Filesystem "sdh": Disabling barriers, not supported by the underlying device
XFS mounting filesystem sdh
Ending clean XFS mount for filesystem: sdh .....
Starting XFS recovery on filesystem: sdh (logdev: internal)
Ending XFS recovery on filesystem: sdh (logdev: internal)
The XFS utilities are in v2.9.4

View 2 Replies View Related

Fedora :: Input/output Error When Trying To Copy DVD Contents With DD

Mar 3, 2010

I even threw some video DVDs at it to make sure it wasn't the disc.

Code:

[pickens@acer1 Videos]$ dd if=/dev/sr0 of=POTC.iso
dd: reading `/dev/sr0': Input/output error
5088+0 records in

[code]....

I am getting the same thing on my laptop running Mandriva, oddly enough. Two different drives, two different computers, two different distros and multiple DVDs.

View 9 Replies View Related

Fedora :: Cannot Remove `file': Input/output Error

Jan 21, 2011

When running rsnapshot tonight it failed with a bunch of

cannot remove `file': Input/output error

errors.

I navigated to the directory and tried to delete it manually and I got the same errors. I tried with 'sudo rm directory'. How else can I delete this directory? What would cause a situation like this?

View 9 Replies View Related

Fedora Hardware :: Tape Input - Output Error ?

May 3, 2011

I'm either missing the obvious or have four identically defective tape drives. Each is a Seagate or IBM Travan drive (yes, I know they're old and I need to access the data; they were in Win boxes) using QIC-80/DC-2120 media. I've been trying to solve this using three Fedora boxes (different versions) and one Debian machine.

The OS's recognize the drives and they show up as /dev/st0.

With no media in the drives, I get a status report; with media inserted, I get the same input/output errors.

Examples (all as root):

With tape inserted:

With no tape in drive:

With tape inserted

Everything I've found on Google suggests that the drives are defective.

View 4 Replies View Related

General :: Cp: Reading `filename': Input/output Error?

Feb 18, 2010

I wish to know what could be the possible cases for this error:cp: reading `filename': Input/output errorI am getting this message when I am trying to copy a big file of around 50MB.

View 2 Replies View Related

Ubuntu :: Unable To Open Input/output Files

Jan 23, 2010

At the time of INSTALLATION im getting errors about not able open Input/output files... and some other errors... im using SATA 80GB HDD... i have already installed XP....

the sad thing is two months back i installed UBUNTU ..and i have worked on it...
but unfortunately i formatted my entire system and now i got this problem...

View 2 Replies View Related

Ubuntu Multimedia :: Dual Audio Input - Output ?

Feb 28, 2010

I am attempting to connect a bluetooth headset to a Telex Intercom System. I can connect my bluetooth headset to Ubuntu and use the microphone and the speaker perfectly. There are no problems with the Line-In or the Line-Out.

Is there any way to connect the BT-Microphone to the Line-Out while connecting the Line-In to the BT-Speaker?

View 1 Replies View Related

Ubuntu Multimedia :: Input - Output Error With Growisofs

Mar 10, 2010

I use the growisofs command from the terminal to do most of my burning. Mostly because i burn almost the exact same type of file every time so its pretty easy to set up. I've done this dozens of times and never once had a problem before. I loved it because it was so much simpler than doing this in windows where i would need to install a few extra programs and codecs. That was up until today where it started failing every single time i tried to burn something.

For some reason every time i try to burn a disc it gives me this error message:

Code:

I'm really at a loss as to why this is happening. Every thread i found that discussed this problem was mostly focused on k3b or brasero and never really answered the question. As far as i know nothing has been updated since the last time i burned a disc a few days ago. Everything is exactly the same as it was when it worked. The only thing i could think of that might have caused this sudden failure is that i flashed the firmware of another cd drive using the same sata port that this drive is currently plugged into, but that was in windows so i dont see how it could have affected this drive.

View 1 Replies View Related

Ubuntu :: Cannot Access /etc/mtab: Input/output Error

Mar 20, 2010

Code:

ubuntu@ubuntu:~$ ls -al /etc | grep resol
ls: cannot access /etc/mtab: Input/output error
ls: cannot access /etc/resolv.conf: Input/output error

[code]....

Quote:

Code:

ls: cannot access /etc/mtab: Input/output error

I don't like the look of this at all!

View 6 Replies View Related







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