yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] rogro82:
:)

Ill add that feature tonight or tomorrow but its coming soon... the shortcut feature took most of my time so didnt had time to complete loading ( although I already started some work on it )

About the calling script from within other applications. I dont know if people would like having other apps running script and as other apps dont know what script a user has its almost impossible to create a solid solution. So yes it is possible, but if its actually workable is another thing.

Glad you like it!
[Android Apps and Games] texasaggie1:
package file

Can someone just upload the package file so we can load this from our android devices?
[Android Apps and Games] texasaggie1:
oops sorry

When I downloaded gscript.zip on my iMac it unpacked it as a folder. Stupid Mac...

Anyway here is the link to the .apk file for people on their androids....
[Android Apps and Games] rogro82:
Thanks for posting a link for people to use straight from there mobile. Ill add it to the first post.
[Android Apps and Games] rogro82:
Added the ability to load .sh files from the sdcard.

Just put your .sh file in the root of the sdcard and add or edit a script and select "Load file". You will now see the file. Click it and the content of the file will be used as the script.

This way you can easily create .sh files on your pc or share them and eventually execute them as shortcuts :)

Update is in the first post... About to upload the source to the repository
[Android Apps and Games] fubaya:
There's a lot on my blog that are iPhone specific that you might like. They're mostly simple utility type scripts. Some would be nice to use on Android, if possible. Like passing the contents of the clipboard to my home computer to be sent to the printer, another to send the clipboard contents to my computers clipboard. (They're also sorta Linux specific.)

I haven't had the Nexus One long and so far only have a couple to log into my PC and run certain commands, transfer files or mount the phone's /system read-write, start/kill dropbear, imitate missing Linux commands, etc. Nothing very exciting so far.

If I could get wget or curl working on the phone, I'd use scripts with GScript to log into statcounter.com and get the number of hits to my site, give me a list of new topics for certain forums I visit, grab the weather from weather.gov, and probably a lot of other things. There are apps for some of that, but I like writing scripts and I like the way GScript runs them, gives you the output and closes after a few seconds.
[Android Apps and Games] Proxin:
You've helped me with some information, so I looked around a bit and maybe this will help you:

http://groups.google.com/group/andr...hread/065a8ee9e794de53/7f1b336ca1ff67cb?pli=1

Move the wget binary into /system/bin and set permissions correctly (I think they need to be 4755) and see how that works for you :)

This might help you with curl:

http://curl.haxx.se/mail/lib-2009-12/0071.html

I haven't tried either but I have saved the wget binary to my computer to try with the phone. I dunno what I can really do with wget that would be useful for me though.
[Android Apps and Games] fubaya:
Thanks, that wget binary does seem to work and it's nice to have a real gnu tool instead of a busybox one, except now there are apparently problems with the Android /etc/resolv.conf that keep it from finding any actual address. I found a thread on Modaco where some people are working on it and I think they have it working. Since we're sharing scripts, I put 3 on my (new) blog to fill in for the missing unix commands whereis and locate. They're not really usable with gscript, but they sure are handy.

Since our couple of posts took this to a new page, I'm going to repeat my original question:

I have several scripts that use ssh but they won't work because GScript thinks my home directory is / and looks for the .ssh directory in //.ssh. The scripts work in terminal but when ran in GScript give me this error:

"stderr: ssh: Warning: failed creating //.ssh:

Read-only file system

stderr: Host '[my PC's ip address]' is not in the trusted hosts file

My $HOME is set to /data/dropbear in ash, bash, /system/bin/sh and /system/xbin/sh (symlink to busybox). Is there any way to set it in GScript or any other workaround to this?
[Android Apps and Games] fubaya:
Re: GScript * Easily launch/save shell scripts from within Android UI *

I fixed it. There is another known_hosts file in /data/local/.ssh. I copied the one from dropbear to that one and my ssh works with gscript now.

Sent from my Nexus One using the XDA mobile application powered by Tapatalk
[Android Apps and Games] Proxin:
Glad you got it working... sorry for dragging it off-topic :o
[Android Apps and Games] fubaya:
I've noticed part of the output of some scripts disappears and I can't scroll up to see it. Is this a known problem and is there any fix?

I first suspected it was showing the full output of the last command but it isn't. It seems to be a cutoff point in the screen. Once output gets to a certain height, a little over halfway up, it disappears and I can't scroll up to see it.

No problem, I wasn't worried about off-topic, just that my question went to the previous page where no one would see it.
[Android Apps and Games] pool7:
@rogro82

I'm interested in purchasing the full version (mainly to support your project) but can't do so through the Market due to my location (Argentina).

Is there any alternative for purchasing?

Maybe PayPal?

Thanks!
[Android Apps and Games] putkte:
Hello,

could it possible to add that kind of feature so certain script can be launched from software like Setting Profile? or make it autorunnable?

I so liked to add mine rsync script to launch always I arrive to @Home
[Android Apps and Games] endamaco:
Is there a way to closing gscript after running a script? I mean: without clicking on the "close" button and without waiting the timeout
[Android Apps and Games] fubaya:
Anyone having errors with GScript with Cyanogen 6.0 RC3? I'm trying to figure out if it's just me and I need to re-wipe and reflash CM or what.

Every time I use GScript, it says "stderr:" between every command. For example, the commands:

date

date

give output like:

stderr:

Mon Aug 16 11:47:14 EDT 2010

stderr:

Mon Aug 16 11:47:14 EDT 2010

stderr:

Redirecting stderr to /dev/null doesn't work and all the commands seem to execute just fine, there's just that stderr before, between and after the commands which makes it nearly impossible to use with scripts that have a lot of output.

There is a plug-in for Locale called "Locale Execute" available in the market to execute certain commands. All Locale plug-ins work with Tasker, but I don't know if they work with Setting Profile. Locale Execute doesn't run all commands on it's own but can use the shell to run commands, so you may have to put your rsync command into a file on the sdcard and use "sh /sdcard/rsyncfile" to execute it with this plugin.

Here is the dev's page: http://elmicha.de/app/LocaleExecute/plugin-help.html
[Android Apps and Games] putkte:
I really love this if could be possible in Gscript. I got already Gscript-full. :) I will donate more if this feature is implemented in Gscript. This is only thing what is missing on mine phone.
[Android Apps and Games] zarathustrajh:
default script, etc

Another good option for running a script from outside the program, by using the program, would be to make "default script action 1-n" as "activities" of the program. In this way, a program could do something similar to what the Launcher Pro developer does in order to provide shortcut access to "activities" on the home screen.

More developers should use this when they have multifunction tools, it would allow tools to essentially have an API by which other tools can call and use them. Something I would find infinitely useful.

I also have a suggestion. It seems like this app has not gotten much attention in quite some time. I would propose that there be a movement for this app to be made open-source.

It is far too useful of a tool to allow our shell-scripting-within-ui abilities on android to drop back to null. If this app becomes abandonware, someone will have to start from scratch on a shell scripting app, which would waste time and money.

If this app is made open source it would encourage the development of extensions and improvements, such as one providing the default script action functionality. Considering that it is already free, open source is not really a huge step; and if it were released into public domain, it can't be used by someone who would want to use it to make money. Only other people making free applications can use the code... theoretically.
[Android Apps and Games] r546:
Could you explain in any more detail what you had to do here? I am able to successfully connect to my Tomato router from ConnectBot using RSA keys created in ConnectBot, and now I'd like to do the same from GScript to put a script on my home screen. However I get the trusted hosts error you mentioned. Do I have to do something to get GScript to use the same key created by ConnectBot, or is that system-wide? Thanks!
[Android Apps and Games] fubaya:
I don't know how ConnectBot works, but your ssh command would probably need to point to the key you want to use. It should work for a key in any location and ssh USER@IP -i /PATH/TO/KEY is the general way to tell it what key to use. I would think that using the path to the ConnectBot key would work.

The error I posted about was related to GScript and my "solution" only worked once. The errors returned after I updated my ROM and trying the solution I posted didn't fix anything, but here's what finally did work...

I use "Better Terminal Emulator Pro" and it comes with it's own ssh binary. I deleted the one on the system and put a link to the BTEP ssh. That got rid of the GScript/ssh errors and it has worked through several ROM updates. BTEP costs money so that may be a downside if you don't have any use for it.

Here's a quick walkthrough. I used this command, which is my substitute for the "whereis" command, to find the ssh binary:

echo $PATH | tr ':' '\n' | while read line; do ls "${line}/ssh" 2>/dev/null; done

The output was "/system/xbin/ssh"

I created a backup with mv /system/xbin/ssh /system/xbin/ssh.bak

Then put a link in /system/xbin to the BTEP ssh binary.

ln -s /data/data/com.magicandroidapps.bettertermpro/bin/ssh /system/xbin

I created my ssh keys using this how-to from Cyanogen. It puts the keys in /data/dropbear/.ssh. I keep that dropbear directory on my sdcard and copy it to /data whenever I update the system. My ssh command is ssh ME@MYIP -i /data/dropbear/dropbear_rsa_host_key, and that works in a terminal just fine, but gives the errors in GScript until I run those commands to replace the default ssh with a link to the BTEP ssh.

Hope that helps.
[Android Apps and Games] r546:
Thanks for the steps! A little complicated for my limited SSH/Linux experience but I may give it a shot. Appreciate it.
[Android Apps and Games] webvan:
I currently have a time-out of 20 seconds in Gscript (free version), can that be set somewhere?

Also is there a way to go back to the home screen automatically once a script has been executed ?

Thanks !
[Android Apps and Games] gpz1100:
rogro82,

Do scripts run under your program permit system wide changes/variable changes, service start/stop, etc to stick?

I'm trying a very simple script

-----------------

netcfg

/system/bin/stop adbd

/system/bin/setprop persist.adb.tcp.port 8123

/system/bin/start adbd

------------

The first part works properly in showing the network config/ip addresses.

The next 3 lines work fine in terminal, but not through the script.
[Android Apps and Games] anastazio83:
does the Script.zip file works for the latest update 2.02.A.0.24?
[Android Apps and Games] oduhart:
gscript hangs on script startup

Hello, I installed gscript v1.0.0. I wrote and launch succesfully 2 scripts but now

i encounter a problem : my script (and a new one that simply does an echo "hello world" hangs on starting !

is there a way to resolve this problem ?

precision : i assign su permission to all 3 scripts.

Olivier
[Android Apps and Games] MreznaMacka:
Hey guys, really cool program but I am having a little problem

I want to create 2 scripts and put them on desktop

Skript A will rename Phone.apk to Phone.txt

Skript B will rename Phone.txt to Phone.apk

(/system/app/Phone.apk)

I tried first to make Skript A but when i wanted to execute it, it didnt work. It worked onlu "su" and nothing else

This is how i wrote it:

su

mount -o rw,remount /dev/block/mtdblock3 /system

mv /system/app/Phone.apk /system/app/Phone.txt

Can someone please help me with this. Thank you in advance
[Android Apps and Games] MreznaMacka:
Exactly! The moment i posted this message here i went back to play little bit more with the script, and then i saw that SU is already marked. Deleted the SU from the code and script executed :) :) :)

Made 2 icons on desktop and really makes life easier!

What is even more beautiful is that after script renames Phone.apk to Phone.txt system doesnt scream and doesnt shoot Force close!

Really cool application.

Can someone tell me how to donate to the creator of the program. I am not able to view paid applications on the Android market, but I really feel the need to donate few bucks to creator because this is really cool application
[Android Apps and Games] :
I paid for the no-ads GScript many months ago. I'm using it almost everyday, and its a always install app for me.

It's sad that the dev abandoned the app though.
[Android Apps and Games] zeppelinrox:
I had the same thing... ugly stderr everywhere.

They stopped when I installed the latest busybox (v1.19) with this busybox installer

Thank god for happy accidents lol
[Android Apps and Games] il Duce:
Hello, any help would be great, hopefully some people still look at this thread. I am trying to make a gscript that will run the commands in this linked post (minus adb shell of course).

http://xdaforums.com/showpost.php?p=11055157&postcount=4650

I tried the whole thing as written, and set needs su to false in gscript.

I tried needs su is true in gscript and removed the su in the commands.

I tried each line individually in it's own gscript, both with su in the command and set to false in gscript, then needs su true in gscript and removed su from the command line again.

Every time each one fails with "stderr" - Having read the last post I updated busybox as described, rebooted, tried all those again in gscript, and still get "stderr"...

I don't know how to make a .sh - although from what I understand that would work, just looking for some ideas/guidance. Thanks to anybody who responds :)
[Android Apps and Games] zeppelinrox:
I spoke too soon...

It depends on the rom on whether false errs are displayed.

I was on a stock rom when I had clean output but on custom roms the stderrs came back.

But even if stderrs show up, the script still works.

I've since started using script manager though... it's awesome :)
[Android Apps and Games] myxa78:
have a quastion

i can run gscript via am start -a android.intent.action.MAIN -n nl.rogro.GScriptFull/.GScript

& now how i can run my script (i mean my script without selection it at gscript) via am start ......???
[Android Apps and Games] karandpr:
Nice job .works like a charm.
[Android Apps and Games] fabricioemmerick:
Probleming with Moving Apps to SD Card on GB 2.3.3.

In Coby Kyros MID7015

it's because the sdcard is supposed to be mounted as mnt\sdcard... not as mnt\sdcard\tflash... thats the whole deal... and the only way to do this, is changing the init.d files and rebuild boot.img... ;p

Anyone who understands programming could make a script to solve this problem? I would be very grateful. The function only works when moving applications will explore the root and the root change the permission for R / W. thanks
[Android Apps and Games] mmm286:
Hi,

If a execute a script with Gscript. And then, I minimize GScript and I do other things in the system for a several time. My Android system kill the script automatically or not?

Many thanks and sorry for my english!
[Android Apps and Games] saeedengine:
Gscript for turnin screen off

anyone know a Gscript for turnin screen off.

i was able to do it by switchPro on Froyo. now i updated to 2.3.4 and dosent work anymore. it was very good, just one click and ur phone locked and screen-off.
[Android Apps and Games] a290:
stderr: tar: not found

hi,

-Thnx for app.

-when I run a script (in froyo) I get the following message:

stderr: [: not found

stderr: tar: not found

whats missing ?

the script is simple:

#!/system/bin/sh

echo "Wait";

/system/xbin/patch /system/files/fil1/

echo "done";
[Android Apps and Games] omegaWarrior:
First error, with square bracks mean you have error in some script at folder fp1 or in patch (if it is script too).

The second error means you have no tar archiver installed on your device.

How to solve. Dont know. You need to look into patch script or some scrpit in fp1 (or where are your files placed). How to get tar on android... Dont ever thunk about it. Cant help. If it we linux..
[Android Apps and Games] Lycoss:
Only Lite?

I don't see "GScript" in Google Play, i see only GScript Lite. Why?
[Android Apps and Games] dindog:
i've been 3 years since last time this app update :(
[Android Apps and Games] rogro82:
It has indeed been a very long time.

I am going to update GScript so that it will work ok on 4.x and will update it to look less 2009 ( Moving it from G1 to here was the first big step :D thnx overground ).

If there are users that have more feature requests please post them... I cant promise they will be in immediatly, but atleast i will know what people are looking for.

Besides that I might move it from Google Code to Github, but i will let you all know when thats done.
[Android Apps and Games] overground:
Please add scrollable output. ;)
[Android Apps and Games] kj767:
As you might know, silent executing mode will be so valuable.:)
[Android Apps and Games] rogro82:
I totally agree.

Its still a big work in progress, but some of the key features are:

Scripts are now handled from within a service, they can run un-attended (silent) and it will just show a notification in the statusbar ( which can be clicked to view the running task ).

Executing .sh files directly from within a filemanager ( tested with astro and cyanogenmods filemanager ).

Graphical input support ( text input, dialog options eg yes/no/cancel etc )
[Android Apps and Games] i_like_gscript:
I really like your app great job. Another nice feature would be categories. So I can sort my scipts.
[Android Apps and Games] West@:
+1 :good:

And include please a simple terminal for testing scripts/commands.
[Android Apps and Games] Yodog:
Un-attended (another vote)

Hello my friend!

Congratulation for this amazing piece of software!:good: It is exactly what I was looking for!

To be perfect the only thing I need is an optional silent mode, to run the selected script in background without showing any kind of screen or OK button in the end.

Best regards,

Yodog.
[Android Apps and Games] Yodog:
HD

I forgot another thing.

It will be great to have some HD icons that will look sharper in high resolution screens.
[Android Apps and Games] rogro82:
;)

Hopefully i will also have a beta version to test any time soon.
[Android Apps and Games] Yodog:
Hello my friend!

Any news about the beta version?

Enviado do meu GT-I9300
[Android Apps and Games] Tomo123:
I have a small bug / problem to report, and if anyone can help, it would be great.

Samsung Galaxy Mini 2

- rooted, SuperSU installed, root permission given to GScript, enabled "Needs SU" in Gscript

On every boot I run a script ( manually ) to alter the read_ahead_kb of my memory card from 128 to 2048.

system/xbin/echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

system/xbin/echo "2048" > /sys/devices/virtual/bdi/179:32/read_ahead_kb;

It works, but GScript gives out a "stderr:" reply. There's nothing in my logs to pinpoint the reason for a stderr.

Anyone?
[Android Apps and Games] ildar_prophet:
source please?

Well, the version 1.0.0 from the Google code happen to execute a script, but dies immediately after that on my 4.1.1.

I am sorry, but is this going to happen anytime soon? As it delays putting of this wonderful advanced program for UNIXoids to F-Droid.org repository. See discussion at forum: f-droid.org/forums/topic/gscript/
[Android Apps and Games] ugrnm:
Re: [APP] GScript * Easily launch/save shell scripts from within Android UI *

Any progress to share? I'm very eager to try out the new iteration!
[Android Apps and Games] Yodog:
Re: [APP] GScript * Easily launch/save shell scripts from within Android UI *

So am I! Hope to see this updates soon.

Sent from my GT-I9300
[Android Apps and Games] thebearnecessities:
desktop shortcuts

I'm trying to get a script onto my desktop/homescreen.

When I long press on the desktop I am offered a choice of wallpapers.

How can I long press to find the "add shortcut" option that's been mentioned on this thread?

android 4.1.2
[Android Apps and Games] espmartin:
Re: [APP] GScript * Easily launch/save shell scripts from within Android UI *

Keeps force closing on exit, and scripts don't run. Gonna log cat soon.
[Android Apps and Games] rogro82:
Im sorry that I have not been able to do as much work lately because of back problems and a very busy schedule.

I will focus on getting a first version up and running so that people with 4.x can continue using gscript and after that ill continue work on the other features.
[Android Apps and Games] kapil_dheer:
Re: [APP] GScript * Easily launch/save shell scripts from within Android UI *

Can somebody guide me to the thread on xda having readymade scripts.....I'm a newbie and want to find some useful scripts.....learn by them of course.
[Android Apps and Games] pt0:
Thanks for that tool! Really helpful.
[Android Apps and Games] Yodog:
Some scripts...

Hello my friend,

I have some scripts that I made and attached here.

I usually put comments inside the scripts, so I believe you can start learning with them, using some Google help too. :D

Best regards,

Yodog.
[Android Apps and Games] rogro82:
Edit:

Updated to first post
[Android Apps and Games] ugrnm:
Looking forward!
[Android Apps and Games] rogro82:
Edit:

Updated first post
[Android Apps and Games] overground:
Checkboxes + scrolling output = Win!! :cowboy:
[Android Apps and Games] rogro82:
2013-04-12 ( 1.0.0-alpha2 )

- Cleanup of list items in the history tab ( date/time added ).

- Basic history view which shows the history transcript and allows to email it.

- Ability to create desktop shortcuts from library items added ( contextual actionbar of an item ).

- If a input dialog (gscript-input) is dismissed it now shows a notification that there is a input request pending and clicking it will bring the user straight back to the dialog.

Download in first post.
[Android Apps and Games] ildar_prophet:
Can't wait to see the source!

Please let us know when you share it.