Sponsored Content
Full Discussion: For loop after upgrading
Top Forums Shell Programming and Scripting For loop after upgrading Post 302979371 by Don Cragun on Saturday 13th of August 2016 07:03:07 AM
Old 08-13-2016
It would appear that the new version of bash that you are now running has an additional keyword that you can no longer use as a variable name in your scripts. Try changing:
Code:
        for ((offset=$thumbStart; offset<=$thumbEnd; offset+=10)) # LINE 459
        do
        printf -v outfile "$filePNG"_"%03d.png" "$((++n))"

        ffmpeg -itsoffset -$offset -i $fileFinal -vcodec mjpeg -vframes 1 -an -f rawvideo -s 640x480 "$outfile"

to:
Code:
        for ((Offset=$thumbStart; Offset<=$thumbEnd; Offset+=10)) # LINE 459
        do
        printf -v outfile "$filePNG"_"%03d.png" "$((++n))"

        ffmpeg -itsoffset -$Offset -i $fileFinal -vcodec jpeg -vframes 1 -an -f rawvideo -s 640x480 "$outfile"

and see if that works.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Upgrading to PHP 4.3.4 from 4.2.2

ok im trying to upgrade but i keep geting an error and 1 says it ned the other to install but nethere will install heres what im getting now though now i have 4.2.2-17.2 installed now do i have to unintall everything to get this to install or how do i go about it thank you for your help (3 Replies)
Discussion started by: Blackrose
3 Replies

2. Solaris

upgrading to solaris 9

Hey All We are having ORacle 8.1.7 and ORacle 9.2.0.4 installed in our Sun sparc Servers(oON SOLARIS 8). We are going to upgrade our servers to SOLARIS Ver 9 Solaris ver 9 supports the above mentioned Oracle versions. Can any one help me out how to upgrade from solaris 8 to solaris 9. ... (2 Replies)
Discussion started by: solaris8in
2 Replies

3. AIX

Upgrading from 5.1.0.0 to 5.2.0.0

As a fairly new Administrator to AIX i am a little leary of the OS upgrade I need to do on one of our servers. I have already upgraded the microcode to the lastest level and now need to do the OS. I have the docs and discs from IBM and have determined that I dont want to do a new installation but... (5 Replies)
Discussion started by: Target
5 Replies

4. Filesystems, Disks and Memory

Upgrading PC Memory

hello folks, I am planning to upgrade my PC's ram. currently the ram I have is 2x256MB=512MB/133MHz (DDR266) - DDR SDRAM, PC-2100. My guess is that it has 184 Pins. I would like to get a DDR2 with 667MHz, 240 pin. Is it possible, since pins don't match. Do they have to match? (there are 3... (4 Replies)
Discussion started by: milhan
4 Replies

5. Solaris

OS_LDAP upgrading

Hi All, We are going to upgrading Solaris-5.8 to Solaris 5.10, as well as LDAP 5.1 service pack-3 to LDAP 5.1 service pack-4, So I'm requesting to all what is the best way to upgrade Solaris-5.8, LDAP 5.1 service pack-3 to LDAP 5.1 service pack-4 in solaris-5.10, As per my knowledge there... (1 Reply)
Discussion started by: mkanuri
1 Replies

6. BSD

Upgrading to FreeBSd 7.1

I have installed Free BSD 7.1 an would like to upgrade to 8.0 using theupgrade option under sysinstall. Is this posible? (3 Replies)
Discussion started by: FloridaBSD
3 Replies

7. AIX

Upgrading OS from 5.2 to 5.3

We currently have test and production servers running AIX 5.2, DB2 8.1(Prod), DB2 8.2(Test),Websphere 6.1 on both. We need to upgrade to DB2 to version 9, but to do that we also need to upgrade the operating system to 5.3 and go from 32 bit kernel to 64 bit kernal. Looking for information on any... (3 Replies)
Discussion started by: jyoung
3 Replies

8. AIX

Upgrading PowerHA from 7.1.0 to 7.1.3

Hi All, As per the IBM upgrade/support matrix IBM Techdocs Technote: PowerHA for AIX Version Compatibility Matrix we can't do online upgrade or rolling migration from powerha v7.1.0 to v7.1.3. on AIX61_TL9_SP4, So we are following the steps as below ... 1 ) Bring down the cluster 2 )... (2 Replies)
Discussion started by: linux.amrit
2 Replies

9. AIX

Problem Upgrading OS

Hi I've just upgraded OS - using "Migration with nimadm". The Nim master is a Power 6 server, and the source is 6100-09-04-1441. The migration was successful with a Power 6 - Nim client, but there was a problem with Power 5 - Nim client : the OS remained 6100-00-09-0920 icapp1:/]oslevel -s... (1 Reply)
Discussion started by: bobochacha29
1 Replies
set_color(1)							       fish							      set_color(1)

NAME
set_color - set_color - set the terminal color set_color - set the terminal color Synopsis set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR] Description Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal. o -b, --background Set the background color o -c, --print-colors Prints a list of all valid color names o -h, --help Display help message and exit o -o, --bold Set bold or extra bright mode o -u, --underline Set underlined mode o -v, --version Display version and exit Calling set_color normal will set the terminal color to whatever is the default color of the terminal. Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color. Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator. set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of ncurses and recompile fish against it in order to fix this issue. Version 1.23.1 Sun Jan 8 2012 set_color(1)
All times are GMT -4. The time now is 03:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy