Jump to content

Fblade1987

Active Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by Fblade1987

  1. Hey guys i'm creating a dos style rename script, so if a user types say q14.* as the 1st param and b14.* as the 2nd and will rename all q14 files to b14 but keep the extensions, so i've developed nearly the full script "i think", if i use echo(echo "if $1 had been renamed it would now be $newfile") to simulate the rename it works fine shows but it becomes a whole different story if i alter that line to "mv $1 $newFile" #!/bin/sh case $# in 0)echo Usage: dosRename file >&2 ;; *)for file do case $file in [A-Za-z0-9]*.*) type=main ;; *.[A-Za-z0-9]* )type=extension ;; esac #echo $type done endFile=$file while [ $# -ne 1 ] do case $type in 'extension') extension=`echo $endFile |sed -e 's/*././'` newfile=`echo $1 |sed -e "s/.[A-Za-z0-9]*/$extension/"` echo "if $1 had been renamed it would now be $newfile" # mv $1 $newfile ;; 'main') fileName=`echo $endFile | sed -e 's/.*//'` newFile=`echo $1 | sed -e "s/[A-Za-z0-9]*.(.*[A-Za-z0-9]*)/$fileName.1/"` echo "if $1 had been renamed it would now be $newFile" # mv $1 $newFile ;; esac shift 1 done ;; esac it renames the 1st one fine then the rest go along the lines of dosRename q14.* b14.* it dose first one fine but 2nd one ends up q14.1.2 and third q14.1.2.3 any ideas what is up with my script?
  2. OK Guys, was sat watching the hak5 live rc1 and was listening about the community projects, and suddenly an idea popped into my head a rather stupid one as i would have no chance in hell in making it as i don't know the first thing about it, but I'm sure one of you guys could take it under you wings if you wanted that is of course. The Idea is what about making our own Linux distro, customize a already stable destroy or what ever, and make our own have all the awsome tools that people use games, and we could also update the destroy every so often to put apps that get shown on the hak5 or hak5live show. I know it may seem like a stupid idea as i can't do much of the programming but i have done my year of uni in soft. enj. So i actually may be able to help a little and i can also do the art work or what ever you guys like. as i say this is only an idea to see if somebody would take it under their wings and maby in the process show me how to..... thanks Matt
  3. ok so i got all this sorted but something strange now seems to happen i upgraded to ubuntu eddy eft then installed drivers back on but now when i come to screen saver or logout screen the monitor goes on standby any idea?
  4. i have what ever comes on the ubuntu live cd as i havnt installed it to update drivers
  5. Hey guys well the story is as follows, I recently bought a new lcd monitor, after a couple of days using it i thought i wonder what it is like with linux on it, so i got my copy of ubuntu out restarted my machine choose the option i wanted and waited patiently but then all of a sudden a blue console came up saying that xorg had failed with the graphics. :shock: so i quickly booted back up in windows got onto the irc and asked for a solution well i got told it was because i was a dvi plug which i wasn't when i originally had ubuntu installed so i got told i should just go back to standard vga cable, so i did but hated it because i couldn't get the true resolution i had before with the vga cable. so my question is, is there a way i can install linux(pref ubuntu or pclinux) on my machine using my dvi lcd monitor? thanks for time Matthew
  6. well I got the equipment and i must say im more the pleased with it just got to go get content now *runs off to try to find content*
  7. Right guys wonder if i can have your assitance, i want to start my own podcast station up and well i need the setup :oops: , so i was just wondering if you guys could help me out in finding the cheapest solution, but yet still have decent quality. I Would go about looking for myself but i have no idea about audio equipment so i dont want to be taken for the ride of my life so to speak. heres a list of things i think i need Microphones x 3Microphone mixer x1 and Depending on the types of microphones 3 stand If you guys think of owt else i need or can suggest better things to use please be my gusest i really dont want to spend no more the £50 thanks Fblade
  8. How about Talking Computers???? My Dad use to have that has his company name, but sadly he can no longer run the company which is a shame has it was a good lil money earner
  9. Well Howdy mate i know im not exactly a vetran of hak5, only found out about the whole scene about 3 days ago but already hooked and must say the community is brilliant very helpful so hope u stay around
  10. no im actually trying to load it but nothing seems to happen :cry:
  11. hey guys well i tried to start the script is this code right? <? $fire = sy stem("C:Program FilesMozilla Firefoxfirefox.exe"); php echo "<a href="$fire">Run fire fox </a>"; ?> thanks alot matt
  12. NAH not knowledgeable enough to be able to use any *nix distro yet im still on windows would i have to use perl or something like that to achive the effect im after?
  13. Okies this is where i will get called "UBER n00b" here but how would you put that in php?
  14. LOL yeah really dint think about that did i :roll: But is there anyway to do the rest?
  15. Hey Hack.5 team! Even though i only found out about your site and videos last night i must say i am already hooked :D , so much so im inspired to make my own sort of iptv (but thats a diffrent story) Anyways to my question! I just watched the season 1 episode where I think Darren(Dont shoot me if i got name wrong), was showing us how to make a web enabled object act as a remote for Vlc, and this got me thinking how can i make a script of somesort that can act more like a media center remote eg(Shut down task on pc, open a diffrent program, and even Turn off the pc), is this even possible? and could someone be kindenough to point me into the direction on how to achive the effect i want? Thanks so much for you time, keep up the good work Matthew
×
×
  • Create New...