General :: Loop Terminates / Quits After Single Cycle
Jul 14, 2011
I tried to find an answer to whatever is happening with my sh, tried a few approaches, but none is working the way I planned... the loop quits with exit 0, runs once, if I comment out 'ffmpeg' line, it runs N times as it should - ffmpeg does not error out other than 0.
Code:
find . | grep .mp3 | while read filename do
newfilename=`echo "$filename" | tr ".mp3" ".ogg"`
ffmpeg -i "$filename" -acodec libvorbis -ac 2 -aq 4 -y "$newfilename"
echo inside #4debug
done
echo outside
This sh runs once, echoes "inside" 'n "outside" once, exits with '0'... unless ffmpeg commented out. I also tried to feed the loop with: done < /tmp/fname.list. BTW, this works well - but I am very interested in the >while read< loop giving up.
Code:
for i in *.mp3; do ffmpeg -i "$i" -acodec libvorbis -ac 2 -aq 4 -y "$(basename "$i" .mp3).ogg"; done
View 3 Replies
ADVERTISEMENT
Jan 26, 2011
When I boot one of my machines, it gets as far as GRUB, then proceeds to a blank screen for a second, and then repeats the cycle all over again - ad infinitum. I have tried previous kernels on the list with the same results Also, I cant boot into recovery mode either.
I have run Memtest successfully from the GRUB options and no errors appear in the results. I have tried booting from a Live CD and here I get as far as the "OS choosing screen". When I then select one and hit Enter, the screen goes blank and the machine reboots as before.
View 5 Replies
View Related
Aug 12, 2010
The login cycles- I already have a problem with mounting something connected with USB (long term minor annoyance, but everything works), but suddenly I cannot log in. When I put my username and password in, the screen flashes black for about half a second, then the login screen re-appears. If I put the wrong password in, I get an authentication error message (as expected) without turning black and then cycling again.
I have no problems going into terminal mode and logging in. I've tried all sorts of suggestions related to this problem- reinstalling ubuntu-desktop, apt-get clean, sudo startx, and the last indicates that x-windows is already running. I've found a couple more things to try, but I'm not too sure how well they'll work. It seems to be connected with x-windows, but I don't know what is causing it. Last night I had a big problem that required reinstalling nautilus (couldn't set up a connection to a remote server), and that problem was fixed- but this developed when I booted this morning.
View 4 Replies
View Related
Jul 3, 2011
I installed Ubuntu 11.04 and it refuses to show me a boot menu so I can select single user mode. When it does boot, it continues to cycle as X11 fails, but will not let me change into any of the consoles via control+shift+1-7 or control C or any command. X11/GDM continues to cycle as I hear my video card keep spinning up and down. In every version prior, after 3-4 fails it would give you a shell and say, ok it failed. how to boot into single user mode or escape out of this GDM/X11 fail cycle?
View 1 Replies
View Related
Sep 1, 2010
I have a mytext file with month and year as two separate fields. likemytext fil
08 2010
09 2010
10 2010
........
........
........
I want to read the values of each field i.e., month and year into an awk script.
View 10 Replies
View Related
Sep 4, 2010
I use ubuntu 9.10 karmic koala as my desktop OS. My internet connection is creating problems these days, ever since I started downloading torrents for iso files. Whenever the downloads in transmission client is running, the internet gets disconnected abruptly, and even my other downloads in d4x stops. On using the plog command in the terminal, it shows the following:
Sep 5 03:32:57 gunjan pppd[3241]: LCP terminated by peer
Sep 5 03:32:57 gunjan pppd[3241]: Connect time 4.5 minutes.
Sep 5 03:32:57 gunjan pppd[3241]: Sent 2102494 bytes, received 31842568 bytes.
Sep 5 03:33:00 gunjan pppd[3241]: Connection terminated.
Sep 5 03:33:00 gunjan pppd[3241]: Modem hangup
Sep 5 03:34:05 gunjan pppd[3241]: Timeout waiting for PADO packets
Sep 5 03:34:05 gunjan pppd[3241]: Unable to complete PPPoE Discovery
Sep 5 03:35:10 gunjan pppd[3241]: Timeout waiting for PADO packets
Sep 5 03:35:10 gunjan pppd[3241]: Unable to complete PPPoE Discovery
I dont understand much of it, as am a new user using linux systems from only a few months ago, can't find out. Also on closing the transmission client the other downloads in d4x run perfectly well and so does my internet connection.
View 1 Replies
View Related
Apr 11, 2010
I did an upgrade from pardus 2009 to 2009.1. When all the packages finished downloading and started installing, the power went off suddenly. Now my system is boots fine till the graphical login, but after I enter username and password, desktop fails to load and I am back at the login screen. I tried to resume the upgrade using (# pisi upgrade) but pisi terminates after checking the repositories. What to do?
View 2 Replies
View Related
Feb 17, 2010
If i have, say, ..... tab opened and if a click on some of the related videos (while it's still playing) firefox terminates. The same if I open ..... on one tab and myspace on another - firefox just shuts down.
I want to know why this happens, is it a bug and how can i fix it ?
View 2 Replies
View Related
Nov 18, 2010
I want to cycle between three directories, always in the same virtual console (VT). Just the case of 'cd -' but with three dirs instead of two dirs. Can this be done by simple means?
View 2 Replies
View Related
Jun 22, 2011
On the Mac, I use Command + ` (the tilda) to cycle through windows in the current application (eg terminal or chrome). It's like alt + tab except only for the current application's windows. (possibly on compiz but without any flashy exposee like graphics)?
View 2 Replies
View Related
Mar 22, 2010
I have installed centos 5 and can print small to medium lpr files using cups fine (1 to 20 pages), but when i tried to print a file of 95 pages the printer just stops, I have to power off the printer and turn it back on and it will start printing again. It looks like some data is lost in this process. It may print 20 pages and stop. When restarted it may print 20 or 40 or complete the report.I can print to the devicectly and it works fine. It is only when the large print jobs are run through the spooler.I have tried on different printers and the same results, that's what makes me think it is a spooler problem.
View 2 Replies
View Related
Jun 29, 2011
When looking for a certain word or phrase in the man page of linux command, one can type '/' followed by the word/phrase to search for it. What I'd like to be able to do is to search for the next occurrence of the word/phrase without having to type it out again. Kinda like when you use 'ctrl+f' in a browser to search for a word, and then press 'enter' to find the next occurrence of that word.If this is possible to do, how do I do it?
View 2 Replies
View Related
Apr 26, 2011
The code:
Quote:
Problem: I need a method to maintain the $i variable. In fact, actually, this variable get lost when executed. I think that an escape can preserve this variable and permit its execution inside the function, but I've no idea about.
View 3 Replies
View Related
Mar 29, 2010
I've been trying to get it to work on my laptop off and on for several years now, experimenting first with Redhat (version 6.1, I think) and now trying with Ubuntu 9.04. I've done a full install using the entire hard drive (no dual boot). So I'm trying it for real this time. I'm having a problem with my video drivers. The video is ok (not great) and I don't seem to have any options to adjust it.
When I go into system > preferences > display, I see monitor "unknown", set at 1024x768 with a 75 Hz refresh. If I click on "detect monitors" nothing happens. It says under system > administration > hardware drivers that "no proprietary drivers are in use on this system". I've got two options:
[code]...
For the first part of boot, I have access, but then when it comes up into Ubuntu, the big monitor (a Dell 2500, I think, plugged into the stock Toshiba docking station via DVI) quits working, and all I have is a dim picture (dark, like something's sapping power from it) on the laptop display.....
View 4 Replies
View Related
Nov 22, 2010
I want to spawn a GDB session from bash script and keep it working to interact it from outside. But when I start it in background (with '&' sigil).
Code: gdb -x gdb_script.txt ./a.out < gdb_pipe.fifo &
It executes passed script and terminates by itself (I do not pass any data or signals to it)
Code: Breakpoint 33, main (argc=1, argv=0xbffff0f4) at main.c:53
---Type <return> to continue, or q <return> to quit---53
read_main_config();
(gdb) quit
A debugging session is active.
Inferior 1 [process 5957] will be killed.
Quit anyway? (y or n) [answered Y; input not from terminal] What can I do to make it alive?
View 1 Replies
View Related
Mar 1, 2010
I am trying to relaunch a process after it's name, not pid, terminates in C++. Is this possible? I am using g++ 4.3-4.4 on Fedora 10, wandering between my x86 and ppc machines. I just recompile.
View 3 Replies
View Related
Aug 18, 2009
I have p1,p2,p3,p4 some processes created by me in C. p1, p2, p3 are started individually from several consoles. And I want process p4 to terminates processes p1, p2, p3 if they are running. Which is the easiest way to accomplish that? put all processes in the same process group and send from p4 a kill signal to the group. But I couldn't do that because I cannot call successfully setpgid(getpid(), 15000) from p1-p4. It's there some way to put them in the same group? the processes don't have a child-parent relationship, they are launched manually from consoles.
View 1 Replies
View Related
Dec 23, 2010
I tried to install 11.3 today but no luck so far. I installed it 3 times from GNOME liveCD and once from a LiveUSB both didn't work. With the CD, it restarts before installing initrd, GRUB tells me :
error 15 : file not found.
I verified both the image I downloaded via md5 and the CD I made and they both are OK.
View 9 Replies
View Related
Dec 14, 2010
I am using kppp in ubuntu10.10 to connect via my samsung c3010 mobile and Airtel connection. But when I dial through it, it terminates on signal 15! Some requests are rejected it seems. I am pasting the log:
Dec 14 20:08:02 pratik pppd[1883]: pppd 2.4.5 started by pratik, uid 1000
Dec 14 20:08:02 pratik pppd[1883]: using channel 5
Dec 14 20:08:02 pratik pppd[1883]: Using interface ppp0
Dec 14 20:08:02 pratik pppd[1883]: Connect: ppp0 <--> /dev/ttyACM0
[Code]....
I am connecting the modem over USB. The GUI shows me it is dialling the number, and then connecting to the network, and after a while ( it sends it 9 times it seems) it terminates.
View 9 Replies
View Related
Apr 1, 2010
We are running Ubuntu on VMWare EXS Server 3i (32 bit server). We tried upgrading from Version 9.4 to 9.10. The server will not boot. It throws networking errors then just comes to a blank black screen.
Here is most of the screen:
/dev/sda5 was not cleanly unmounted, check forced. (note - this is due to having turned it off at the black screen - that much I get)
/dev/sdd1: recovering journal
/dev/sdb1: recovering journal
/dev/sdc1: recovering journal
/dev/sdb1: clean, 74772/6553600 files, 15793957/26214055 blocks (check in 5 mounts)
/dev/sdd1: clean, 22599/6553600 files, 15036060/26214055 blocks
/dev/sdc1: clean, 381500/13107200 files, 34291998/52428119 blocks
Filesystem checks are in progress (ESC to cancel):
***** here is where I think things are going bad ************
init: network-interface (eth0) pre-start process (535) terminated with status 1
init: network-interface (eth0) post-stop process(61 terminated with status 1
init: network-interface (lo) pre-start process (615) terminated with status 1
init: network-interface (lo) post-stop process(62 terminated with status 1
/dev/sda5: 105/124496 files (34.3% non-contiguous), 18894/.248976 blocks
mountall: fsck /boot [410] terminated with status 1
fsck from util-linux-ng 2.16
/dev/FileU32-root: clean, 69429/734400 files, 540860/2933760 blocks
init: networking main process (70 terminated with status 1
View 3 Replies
View Related
Sep 24, 2010
I am using Ubuntu 10.04 and installed Wally 2.4.
I have few questions:
1) Currently I run wally with command line by running
Code:
It works, but as soon as I close my terminal, wally terminates. Is there anyway I can make it not terminate?
2) why is that option disabled?
View 4 Replies
View Related
Nov 19, 2010
Just like the title says, if I were to try to run anything through gksu and accidentally put in an incorrect password, instead of the gksu window coming up again, it would just terminate.
Code:
theyain@theyain-laptop:~$ gksu update-manager
GNOME_SUDO_PASSGNOME_SUDO_PASSSorry, try again.
sudo: 3 incorrect password attempts
Whats interesting is that it gives me the sudo error after only one incorrect password attempt.
View 8 Replies
View Related
Nov 19, 2010
On October 9, I had a Dell GXS260 1Gig memory 80 gig HD, running XP-pro and Ubuntu 10.4.I downloaded and burnt ISO's for Desktop and Netbook for 10.10.the screen would get purple and blink 5 dots at me and then kill the keyboard and keep blinking the dots until it did it 15 times and then just get real quiet and just quit.After looking at articles on installing, I have run the memtest and the disk check and I have burnt the ISO's at 4x rather that 32x.I can boot back to XP (where I am now) and I can run Knoppix. Knoppix is a good way to look at /var/log/ for whatever that's worth.
Why the trial run does not work for UBUNTU is a complete mystery since KNOPPIX runs.For future releases, I suggest that rather than five stinking, blinking dots, two number show up as in 38/657 meaning that we have finished step 38 of the 657 steps.My questions: Should I delete the whole Linux partition?Is there something that I can rename or delete in the root directory that would alert the installer to try harder.It seems that the installer goes so far and then just rolls over and does nothing. (fifteen minutes of nothing is nothing)Is there a log of how far the live-CD has gone before it quits?Why does GRUB use 10.10 on all of the 20+ options that he shows? I have been running Ubuntu Linux for about four years now and I think the earlier versions left the GRUB version intact. Not that I ever booted into an earlier one. I am losing interest in installing 10.10 or even trying to make the live-CD run.
View 1 Replies
View Related
Feb 17, 2010
..... tab opened and if a click on some of the related videos (while it's still playing) firefox terminates. The same if I open ..... on one tab and myspace on another - firefox just shuts down.I want to know why this happens, is it a bug and how can i fix it ?
View 2 Replies
View Related
Feb 23, 2011
I'm using a Toshiba Satellite P505 Intel dual core and 6 gig ram with 64 bit Ubuntu 10.10. Every now and then (often while using Open Office), my keyboard stops responding. I have not reliably been able to reproduce this. It seems somewhat random. Additionally, clicking on any of the Ubuntu menu items such as Places, or Applications does not pull down the menu. Mouse seems to work other than that. If I press Alt-F3 and then Alt-F7, everything returns to normal. Any ideas what is causing this or if there is a known fix?
View 4 Replies
View Related
Mar 17, 2010
Since the latest update the gnome main menu quits unexpectedly whenever I try to select any funtion e.g. shutdown. In addition the network manager does not show up and does not configure the network (wireless). This behavior is since the latest update last week. Has anybody seen this as well? How can I revert to the previous state?
View 6 Replies
View Related
Jun 30, 2010
I got Miro and it installed but when I launch it it just quits. 11.2 64bit
View 5 Replies
View Related
Jan 10, 2010
I am trying to run Dosbox on 9.10, and both the Software Centre isntallation, aswell as DBGL's included version of Dosbox load the splash screen, then promply quit. I have had success with previous ubuntu versions, and am wondering why I can't get any further on the new version?
View 4 Replies
View Related
Jan 13, 2010
i am running 9.10 on a compaq 2209cl laptop. has been working great with no issues till i updated the other day. when i come out of standby (opening laptop lid, or hit the power button to wake up) my network connection does not start, and there is no wireless networks displayed. a reboot usually takes care of this prob until it goes into standby again. just wanna know if there is a way i can solve this myself or if i gotta wait for a patch? it aint too bad but is sure is annoying when i get on and off this thing all the time.
View 9 Replies
View Related
Jan 23, 2010
Generally, my sound works in all applications and browsers...but every day or two, it suddenly quits and won't work again until I reboot. I am running Ubuntu 64, 8.10 and my mobo has a built-in sound card.
View 1 Replies
View Related