Reply
Thread Tools
sifo's Avatar
Posts: 1,359 | Thanked: 1,288 times | Joined on Oct 2011 @ Tartus.Syria
#1
Hi All.

FIRST THING YOU NEED TO KNOW THAT I TAKE ALL THE RESPONSABILITY ABOUT USING MY SCRIPTS IN THIS THREAD.

i made this script using my N900

i created this thread just to put my simple shell scripts that im making.

Im still at starter stage which mean im learning now scripting.

this page will always be updated.
i uploaded a script that i made it is very simple its like Q&A (questions and answers) "it is all about 'echo' 'if' 'then' 'fi' and 'read' commands".


please in x-terminal the font size should be 16 so you can read well.

finally please dont forget to comment after testing my scripts (for now i only uploaded one).
i would like to hear your opinions

EDIT : the same script add in .deb format many thanks for ammyt and karam

THANKS IN ADVANCE....

./SIFO
Attached Files
File Type: deb testscript.deb (40.4 KB, 43 views)
__________________
[ N900-Crack ] [ The Purge ] [ New Smiles ] [ New icons ] [ ? ]
" Hey ! I've just met you and this is crazy, so install cssu maybe ? "
Please help out keeping Maemo.org alive, and consider donating.
https://www.facebook.com/ZoRk7

Last edited by sifo; 2012-06-02 at 22:40.
 

The Following 4 Users Say Thank You to sifo For This Useful Post:
Posts: 1,003 | Thanked: 1,054 times | Joined on Jan 2010 @ Amsterdam, Palma de Mallorca
#2
What is there in this script that absolutely needs bash to be installed, rather than just the (standard) busybox the device is shipped with?

If you want to interest people in reading your scripts, than make them in such a way that executing them is as easy as possible.
 

The Following 3 Users Say Thank You to anthonie For This Useful Post:
sifo's Avatar
Posts: 1,359 | Thanked: 1,288 times | Joined on Oct 2011 @ Tartus.Syria
#3
@anthonie
well as i said it is a simple script it is like asking for your name then your last name i added some jokes and a menu then you choose what you want i tested it with bash and ash (the standard one ) and it works also i said above that you MAY need bash
and for who is thinking this script gonna do something wrong i say NO and i take the responsability about using it
and thanx for your reply
__________________
[ N900-Crack ] [ The Purge ] [ New Smiles ] [ New icons ] [ ? ]
" Hey ! I've just met you and this is crazy, so install cssu maybe ? "
Please help out keeping Maemo.org alive, and consider donating.
https://www.facebook.com/ZoRk7
 
Posts: 1,003 | Thanked: 1,054 times | Joined on Jan 2010 @ Amsterdam, Palma de Mallorca
#4
Sifo,

I read the script on my laptop but I did not need to run it on my n900 to know for sure that you will need Bash installed, as that is the declaration on your very first script line.

Code:
#! /bin/bash
If you want it to run on the default N900, you'd need to change it to

Code:
#! /bin/sh
 

The Following 3 Users Say Thank You to anthonie For This Useful Post:
sifo's Avatar
Posts: 1,359 | Thanked: 1,288 times | Joined on Oct 2011 @ Tartus.Syria
#5
thanx for the info ! hope you like it and as i said im just a starter .
__________________
[ N900-Crack ] [ The Purge ] [ New Smiles ] [ New icons ] [ ? ]
" Hey ! I've just met you and this is crazy, so install cssu maybe ? "
Please help out keeping Maemo.org alive, and consider donating.
https://www.facebook.com/ZoRk7
 
Posts: 1,452 | Thanked: 2,599 times | Joined on Feb 2011 @ Germany
#6
@sifo,

You might want to have this thread moved somewhere else? I mean, learning bash is not directly related to the N900. I don't know if this would better fit under Development.. although honestly, and meaning no disrespect, learning bash (or busybox or whatever) is a bit off-topic in the whole of talk.maemo.org.

Unless of course you direct your shell learning to something relevant to maemo and/or N900.

Cheers and good luck.
 

The Following 5 Users Say Thank You to reinob For This Useful Post:
sifo's Avatar
Posts: 1,359 | Thanked: 1,288 times | Joined on Oct 2011 @ Tartus.Syria
#7
@reinob
no you missed something !
i created this thread under N900 section because i just wanted to share my scripts with other N900 users my point was not learning or getting advices and sure thanks for anthonie for his post .
and another thing : when ultra noobs run my script and watching me saying it is nothing and very simple they will love to learn bash and this is my main point .

thanks
__________________
[ N900-Crack ] [ The Purge ] [ New Smiles ] [ New icons ] [ ? ]
" Hey ! I've just met you and this is crazy, so install cssu maybe ? "
Please help out keeping Maemo.org alive, and consider donating.
https://www.facebook.com/ZoRk7
 
Posts: 1,003 | Thanked: 1,054 times | Joined on Jan 2010 @ Amsterdam, Palma de Mallorca
#8
I believe what ReinoB is stating is the following:

1. Bash is in no way unique to the N900.
2. The /Devices/N900 forum is meant for threads specifically tied to the N900.
3. Hence, the thread should have been posted in another forum.

I think he is completely right, not in the least because of the comments I placed earlier. Also, placing your thread in the right forum will make it all the more easier for people to find your scripts once it gets buried in the archives of talk.maemo.
 

The Following User Says Thank You to anthonie For This Useful Post:
sifo's Avatar
Posts: 1,359 | Thanked: 1,288 times | Joined on Oct 2011 @ Tartus.Syria
#9
alright sorry that was a mistake but im not going to create the same thread under another section
__________________
[ N900-Crack ] [ The Purge ] [ New Smiles ] [ New icons ] [ ? ]
" Hey ! I've just met you and this is crazy, so install cssu maybe ? "
Please help out keeping Maemo.org alive, and consider donating.
https://www.facebook.com/ZoRk7
 
electroaudio's Avatar
Posts: 379 | Thanked: 325 times | Joined on Jan 2011 @ Stockholm, Sweden
#10
Or you could write stuff that include n900 specific code like this

Code:
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"This is a N900 banner"
__________________
Deskypplet , a desktop for N900 *RIP*
 

The Following User Says Thank You to electroaudio For This Useful Post:
Reply

Tags
bash starter, script-a-brick

Thread Tools

 
Forum Jump


All times are GMT. The time now is 02:01.