Home  |  Forums  |  914 Info  |  Blogs
 
914World.com - The fastest growing online 914 community!
 
Porsche, and the Porsche crest are registered trademarks of Dr. Ing. h.c. F. Porsche AG. This site is not affiliated with Porsche in any way.
Its only purpose is to provide an online forum for car enthusiasts. All other trademarks are property of their respective owners.
 

Welcome Guest ( Log In | Register )

2 Pages V  1 2 >  
Reply to this topicStart new topic
> OT: Debian Help (Bash scripts), IRC is no help...
bd1308
post Aug 21 2005, 11:17 AM
Post #1


Sir Post-a-lot
*****

Group: Members
Posts: 8,020
Joined: 24-January 05
From: Louisville,KY
Member No.: 3,501



okay, so i made a bash script:

for img in 'ls *.jpg'
do
convert -resize 800x600 $img resized-$img
done

per some directions from this site....

seemed easy enough....well it doesnt work.

the debian irc network people are no help at all...

i'm trying to resize some pictures...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Gint
post Aug 21 2005, 11:21 AM
Post #2


Mike Ginter
***************

Group: Admin
Posts: 16,098
Joined: 26-December 02
From: Denver CO.
Member No.: 20
Region Association: Rocky Mountains



Buy a shell scripting book. I can make a recomendation Monday when I'm at work.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
bd1308
post Aug 21 2005, 11:23 AM
Post #3


Sir Post-a-lot
*****

Group: Members
Posts: 8,020
Joined: 24-January 05
From: Louisville,KY
Member No.: 3,501



yeah, i want to learn PHP and bash shell scripts

those are fun.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Gint
post Aug 21 2005, 11:26 AM
Post #4


Mike Ginter
***************

Group: Admin
Posts: 16,098
Joined: 26-December 02
From: Denver CO.
Member No.: 20
Region Association: Rocky Mountains



This works from a bash command line. I'm not familiar with convert or it's usage syntax, you'll have to figure that part out. I'm not going to write a script for you. THe F1 race is on. And it's my day job and today is Sunday.


bash-2.05b$ ls *.jpg | while read name
> do
> mv $name resized-$name
> done

Or in other words,
bash-2.05b$ ls *.jpg | while read name; do; mv $name resized-$name; done
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
bd1308
post Aug 21 2005, 11:35 AM
Post #5


Sir Post-a-lot
*****

Group: Members
Posts: 8,020
Joined: 24-January 05
From: Louisville,KY
Member No.: 3,501



cool man....
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
scotty914
post Aug 21 2005, 11:46 AM
Post #6


suby torque rules
***

Group: Members
Posts: 1,528
Joined: 20-July 03
From: maryland, the land of 25 year
Member No.: 924



britt, i have a question for ya. you have almost 3000 posts, how many are on topic. for a person who says things like this :

QUOTE
I feel like sometimes the 914club can get out of hand

Look, I don't like most of the stuff that goes on at that place.......
quoted from your cisco page about the 914 club.

but you seem to be willing to us the 914club to your benifit, why not ask this stuff on a programmer page, not a car page. i have nothing against you at all, but if you dont like this place dont use it. or use it for car stuff, i know you want the sysco forum to be "HUGE" i know you want some experts from here so the cisco forum has a knowledge base besides god. you have said you basicly want the cisco forum to eclipse the 914 club ( not exact wording but the idea ) .

i am not a person who believes that the 914club should be cars only, but i dont think i have seen a post in 3 weeks that you had on topic, besides smart ass comments, which i do some times.

sorry for my off topic
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Gint
post Aug 21 2005, 11:52 AM
Post #7


Mike Ginter
***************

Group: Admin
Posts: 16,098
Joined: 26-December 02
From: Denver CO.
Member No.: 20
Region Association: Rocky Mountains



LOL! Now that's entertainment. But the man makes a valid point. You bashin us on another forum?

Here's another tidbit. Get better at using google. I found a guy's script to do almost exactly what you asked for . It took me less than 60 seconds.

Read this page. Or search for convert in the text.

http://www.stokebloke.com/bash/index.php

#!/bin/bash

for img in *.jpg;
do

export height=`identify -format %h $img`
export width=`identify -format %w $img`
let ratio=$width/$height

echo Image $img = [ $width x $height ] = $ratio

if [ $ratio == 0 ]
then
echo Portrait 0
convert $img -geometry 600x800! -format jpeg -quality 80 $img
else
echo Landscape 1
convert $img -geometry 800x600! -format jpeg -quality 80 $img
fi

done

This post has been edited by Gint: Aug 21 2005, 11:54 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
bd1308
post Aug 21 2005, 12:13 PM
Post #8


Sir Post-a-lot
*****

Group: Members
Posts: 8,020
Joined: 24-January 05
From: Louisville,KY
Member No.: 3,501



okay, look....

i didn't ask for a long, drawn-out thing about programming or off-topic posts....

as for my post on my board, that comment was concerning a completly different topic altogether....

now as for my 914 posts, I stopped that, becuse I always get yelled at for being stupid....i'm not asking for pity, so don't go there.

If I knew what I was doing, why would I ask questions?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
bd1308
post Aug 21 2005, 12:16 PM
Post #9


Sir Post-a-lot
*****

Group: Members
Posts: 8,020
Joined: 24-January 05
From: Louisville,KY
Member No.: 3,501



but you're right...

only for 914 stuff ....
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Gint
post Aug 21 2005, 12:19 PM
Post #10


Mike Ginter
***************

Group: Admin
Posts: 16,098
Joined: 26-December 02
From: Denver CO.
Member No.: 20
Region Association: Rocky Mountains



QUOTE (bd1308 @ Aug 21 2005, 12:16 PM)
but you're right...

only for 914 stuff ....

Let's not get carried away now. Off topic stuff is what makes this board different, unique and apparently well liked. Maybe if you adjusted your signal to noise ratio a little...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
bd1308
post Aug 21 2005, 12:23 PM
Post #11


Sir Post-a-lot
*****

Group: Members
Posts: 8,020
Joined: 24-January 05
From: Louisville,KY
Member No.: 3,501



what signal??? I have been PROVEN to know nothing about these cars?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Gint
post Aug 21 2005, 12:32 PM
Post #12


Mike Ginter
***************

Group: Admin
Posts: 16,098
Joined: 26-December 02
From: Denver CO.
Member No.: 20
Region Association: Rocky Mountains



QUOTE (bd1308 @ Aug 21 2005, 12:23 PM)
what signal??? I have been PROVEN to know nothing about these cars?

I guess yer hosed then. (IMG:http://www.914world.com/bbs2/html/emoticons/laugh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
scotty914
post Aug 21 2005, 12:36 PM
Post #13


suby torque rules
***

Group: Members
Posts: 1,528
Joined: 20-July 03
From: maryland, the land of 25 year
Member No.: 924



but britt you can learn, you did not know how to do an engine drop and now you do, you learned how to do other stuff to your car, like timing and dwell. so you can learn more, just listen and learn.

if you want to see something funny pick almost any older member here and go find them on PP board and go back and read all of their posts. you will find a lot of em had some of the same problems as you have. i personally could not even get my car to start, due to several reasons but dave darling helped me out a lot. now i think i can fix almost any l jet problem, or at least figure out whats wrong.

i had wiring problems, that i could not figure out, then i did. it just takes time.

britt you might want to ask the admins here if they can start a another page on the 914 club site... ie the clean room or what ever where the cisco members can have their own little room here

(IMG:http://www.914world.com/bbs2/html/emoticons/hijacked.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Part Pricer
post Aug 21 2005, 12:57 PM
Post #14


Believe everything I post
***

Group: Benefactors
Posts: 1,825
Joined: 28-December 02
From: Danbury, CT
Member No.: 35




Hey Britt, when do you go back to school? And, what courses will you be taking?

We need to know so we can be prepared for all of your homework questions. (IMG:http://www.914world.com/bbs2/html/emoticons/biggrin.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
bd1308
post Aug 21 2005, 02:19 PM
Post #15


Sir Post-a-lot
*****

Group: Members
Posts: 8,020
Joined: 24-January 05
From: Louisville,KY
Member No.: 3,501



Statics
Calc II
Physics
etc...

i go back august 27th...

I also like managing a forum and having my server being used...and CISCO was the perfect way to get it to work.

thanks scott.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
McMark
post Aug 21 2005, 02:19 PM
Post #16


914 Freak!
***************

Group: Retired Admin
Posts: 20,180
Joined: 13-March 03
From: Grand Rapids, MI
Member No.: 419
Region Association: None



QUOTE (bd1308 @ Aug 21 2005, 09:17 AM)
the debian irc network people are no help at all...

You always struck me as a IRC type kid. (IMG:http://www.914world.com/bbs2/html/emoticons/tongue.gif) I'll bet you've got an IRC channel open right now that's just scrolling along.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
bd1308
post Aug 21 2005, 02:36 PM
Post #17


Sir Post-a-lot
*****

Group: Members
Posts: 8,020
Joined: 24-January 05
From: Louisville,KY
Member No.: 3,501



if it weren't for the formatting issues with links, i'd use text-mode linux for everything....


just seems like most webpages now-days arent made for text-mode people.

i like IRC.
(IMG:http://www.914world.com/bbs2/html/emoticons/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
rhodyguy
post Aug 21 2005, 07:48 PM
Post #18


Chimp Sanctuary NW. Check it out.
***************

Group: Members
Posts: 22,249
Joined: 2-March 03
From: Orion's Bell. The BELL!
Member No.: 378
Region Association: Galt's Gulch



well you sure have me confused now britt. do you mean staTIStics (stats), or do you mean "statics"? what ever that might be.

k
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
redshift
post Aug 21 2005, 09:06 PM
Post #19


Bless the Hell out of you!
**********

Group: Members
Posts: 10,926
Joined: 29-June 03
Member No.: 869



Britt, I am not on your AIM list anymore... just letting you know, so you won't have to wonder.

I don't like what goes on here either. (IMG:http://www.914world.com/bbs2/html/emoticons/biggrin.gif)

Thanks Scott!

M
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
scotty914
post Aug 21 2005, 10:04 PM
Post #20


suby torque rules
***

Group: Members
Posts: 1,528
Joined: 20-July 03
From: maryland, the land of 25 year
Member No.: 924



QUOTE (bd1308 @ Aug 21 2005, 01:13 PM)

as for my post on my board, that comment was concerning a completly different topic altogether....

now as for my 914 posts, I stopped that, becuse I always get yelled at for being stupid....i'm not asking for pity, so don't go there.

If I knew what I was doing, why would I ask questions?

no britt you are just the red headed step child, that is you and your kin Miles.

and for your comment on that being a totally different topic, anyone can go to your site, then the engine bay then the "where do you want this to go" thread and see what you meant.

and no you where only called stupid because you did not listen, you just threw parts at it and did not think it through

not every one can just get these old cars over night, look at miles he has had 914s for many years and he just does not understand all of it. almost every one here has screwed the pooch at least once with their car, but they learned. best thing you can do some times is to step back ask a question, think about it, listen to the answers you get. use the info you got and go from there.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

2 Pages V  1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 13th July 2025 - 10:37 AM