Author Topic: First Shell Script!!  (Read 17592 times)

Offline Bruan

  • Feature Developer
  • Administrator
  • SuperHero Member
  • *****
  • Posts: 13082
  • Country: 00
  • Methuselah
    • View Profile
    • Bruan_WD Twitter
  • Device: iPhone 3G
  • My Computer: Linux
Re: First Shell Script!!
« Reply #30 on: May 26, 2011, 09:21:18 PM »
Give me something too!!
I'm falling behind :P

Take a look at these scripts I gave to ninja and motionless:
while read tutorial:
http://www.mediafire.com/?t92z11k3a7x63d6
function tutorial:
http://www.mediafire.com/?4q46ol441id4bv1


Try and make a substrate disabler as well!   Its a good starting point :)

Offline RagingNinja

  • SuperHero Member
  • *****
  • Posts: 1863
  • Country: us
  • Ninja
    • View Profile
    • Whited00r
  • Device: iPhone 2G
  • My Computer: Windows
Re: First Shell Script!!
« Reply #31 on: May 26, 2011, 09:23:58 PM »
Give me something too!!
I'm falling behind :P

Yeah. It took me an entire day and a half to get the code JUST how I wanted it... Lol but that's cause I wanted to learn for myself. (Not have Brian do it for me. ;)  )


P.S @Justin, do you have a twitter account?

IF So.. add me "@RagingNinja"
iPhone 2G, 8GB - iPhone 4S, 16GB, iOS v6.1
Multi-Tasking v1.0.3 - Folders v1.2.1 - iOS 3 Wallpaper 1.0.2(1)
WD Recommended/Compatible Tweaks, Themes, etc. | My Repo: cydia.ragingninja.bplaced.net

Offline Bruan

  • Feature Developer
  • Administrator
  • SuperHero Member
  • *****
  • Posts: 13082
  • Country: 00
  • Methuselah
    • View Profile
    • Bruan_WD Twitter
  • Device: iPhone 3G
  • My Computer: Linux
Re: First Shell Script!!
« Reply #32 on: May 26, 2011, 09:26:13 PM »
Give me something too!!
I'm falling behind :P

Yeah. It took me an entire day and a half to get the code JUST how I wanted it... Lol but that's cause I wanted to learn for myself. (Not have Brian do it for me. ;)  )


I wasn't coding it for you :P  I showed you the correct way to use while read and stuff :P
You were meant to code it differently, but using the same syntax, so it didn't error.

P.S @Justin, do you have a twitter account?

IF So.. add me "@RagingNinja"

Offline JustinCase

  • An Agent of the System...
  • Global Moderator
  • SuperHero Member
  • *****
  • Posts: 3136
  • Country: kp
  • Here since WD 3.x
    • View Profile
    • Whited00rDev
  • Device: iPhone 2G
  • My Computer: Windows
Re: First Shell Script!!
« Reply #33 on: May 26, 2011, 09:28:45 PM »
I will be getting one

Brian Giv project!!
I get on every now and then to check up
Go ahead and download Whited00r 8 BETA if you haven't yet: http://goo.gl/AFZIUT <------

Offline Bruan

  • Feature Developer
  • Administrator
  • SuperHero Member
  • *****
  • Posts: 13082
  • Country: 00
  • Methuselah
    • View Profile
    • Bruan_WD Twitter
  • Device: iPhone 3G
  • My Computer: Linux
Re: First Shell Script!!
« Reply #34 on: May 26, 2011, 09:31:27 PM »
I will be getting one

Brian Giv project!!

Its hard!  There isn't much to do with shell just by thinking off hand, but you get ideas over time :P

Hmmm.....   
I did say to do a substrate disabler script as well :P

Offline JustinCase

  • An Agent of the System...
  • Global Moderator
  • SuperHero Member
  • *****
  • Posts: 3136
  • Country: kp
  • Here since WD 3.x
    • View Profile
    • Whited00rDev
  • Device: iPhone 2G
  • My Computer: Windows
Re: First Shell Script!!
« Reply #35 on: May 26, 2011, 09:56:48 PM »
I will be getting one

Brian Giv project!!

Its hard!  There isn't much to do with shell just by thinking off hand, but you get ideas over time :P

Hmmm.....   
I did say to do a substrate disabler script as well :P
No but I don't know where to start
what code to write...?
I get on every now and then to check up
Go ahead and download Whited00r 8 BETA if you haven't yet: http://goo.gl/AFZIUT <------

Offline RagingNinja

  • SuperHero Member
  • *****
  • Posts: 1863
  • Country: us
  • Ninja
    • View Profile
    • Whited00r
  • Device: iPhone 2G
  • My Computer: Windows
Re: First Shell Script!!
« Reply #36 on: May 26, 2011, 11:19:09 PM »
I will be getting one

Brian Giv project!!

Its hard!  There isn't much to do with shell just by thinking off hand, but you get ideas over time :P

Hmmm.....   
I did say to do a substrate disabler script as well :P
No but I don't know where to start
what code to write...?

Download my SubstrateKILL script. Take a look at that... that MIGHT help you... =)
iPhone 2G, 8GB - iPhone 4S, 16GB, iOS v6.1
Multi-Tasking v1.0.3 - Folders v1.2.1 - iOS 3 Wallpaper 1.0.2(1)
WD Recommended/Compatible Tweaks, Themes, etc. | My Repo: cydia.ragingninja.bplaced.net

Offline Bruan

  • Feature Developer
  • Administrator
  • SuperHero Member
  • *****
  • Posts: 13082
  • Country: 00
  • Methuselah
    • View Profile
    • Bruan_WD Twitter
  • Device: iPhone 3G
  • My Computer: Linux
Re: First Shell Script!!
« Reply #37 on: May 27, 2011, 12:03:35 AM »
Rather, look at the code I gave you, as ninja needs to clean his up (no offense, but don't let a beginner learn from a beginner)

Offline JustinCase

  • An Agent of the System...
  • Global Moderator
  • SuperHero Member
  • *****
  • Posts: 3136
  • Country: kp
  • Here since WD 3.x
    • View Profile
    • Whited00rDev
  • Device: iPhone 2G
  • My Computer: Windows
Re: First Shell Script!!
« Reply #38 on: May 27, 2011, 12:39:09 AM »
The icon one?
I get on every now and then to check up
Go ahead and download Whited00r 8 BETA if you haven't yet: http://goo.gl/AFZIUT <------

Offline Bruan

  • Feature Developer
  • Administrator
  • SuperHero Member
  • *****
  • Posts: 13082
  • Country: 00
  • Methuselah
    • View Profile
    • Bruan_WD Twitter
  • Device: iPhone 3G
  • My Computer: Linux
Re: First Shell Script!!
« Reply #39 on: May 27, 2011, 12:55:01 AM »
and the ones I linked earlier on.


That contains most of the code I use in all my programs, just with different things

Offline JustinCase

  • An Agent of the System...
  • Global Moderator
  • SuperHero Member
  • *****
  • Posts: 3136
  • Country: kp
  • Here since WD 3.x
    • View Profile
    • Whited00rDev
  • Device: iPhone 2G
  • My Computer: Windows
Re: First Shell Script!!
« Reply #40 on: May 27, 2011, 01:06:03 AM »
Ok
you think of a project yet?
I get on every now and then to check up
Go ahead and download Whited00r 8 BETA if you haven't yet: http://goo.gl/AFZIUT <------

Offline Bruan

  • Feature Developer
  • Administrator
  • SuperHero Member
  • *****
  • Posts: 13082
  • Country: 00
  • Methuselah
    • View Profile
    • Bruan_WD Twitter
  • Device: iPhone 3G
  • My Computer: Linux
Re: First Shell Script!!
« Reply #41 on: May 27, 2011, 01:24:54 AM »
Lol I'm having trouble with my own!   I messed up somewhere and had to restore :(


I said, try making a substrate disabler.   It's a good starting project :)

Offline JustinCase

  • An Agent of the System...
  • Global Moderator
  • SuperHero Member
  • *****
  • Posts: 3136
  • Country: kp
  • Here since WD 3.x
    • View Profile
    • Whited00rDev
  • Device: iPhone 2G
  • My Computer: Windows
Re: First Shell Script!!
« Reply #42 on: May 27, 2011, 01:26:58 AM »
Lol I'm having trouble with my own!   I messed up somewhere and had to restore :(


I said, try making a substrate disabler.   It's a good starting project :)
I hate restoring

Ok well I'll give it a shot...
I get on every now and then to check up
Go ahead and download Whited00r 8 BETA if you haven't yet: http://goo.gl/AFZIUT <------

Offline JustinCase

  • An Agent of the System...
  • Global Moderator
  • SuperHero Member
  • *****
  • Posts: 3136
  • Country: kp
  • Here since WD 3.x
    • View Profile
    • Whited00rDev
  • Device: iPhone 2G
  • My Computer: Windows
Re: First Shell Script!!
« Reply #43 on: May 27, 2011, 01:27:15 AM »
bit then I'd be tempted to copy ninja script...
I get on every now and then to check up
Go ahead and download Whited00r 8 BETA if you haven't yet: http://goo.gl/AFZIUT <------

Offline Bruan

  • Feature Developer
  • Administrator
  • SuperHero Member
  • *****
  • Posts: 13082
  • Country: 00
  • Methuselah
    • View Profile
    • Bruan_WD Twitter
  • Device: iPhone 3G
  • My Computer: Linux
Re: First Shell Script!!
« Reply #44 on: May 27, 2011, 01:30:41 AM »
bit then I'd be tempted to copy ninja script...

I can tell if you do.   

There are different ways of doing it :)

How about a daemon remover?
Or an appswither/folder themer?
Or a layout backup-er  (already made one, the layout is stored in /User/Library/Preferences/com.apple.springboard.plist)