It is currently Sat Apr 29, 2017 2:29 pm



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Requested link to doc
Unread postPosted: Fri Feb 17, 2017 4:09 pm 
Offline

Joined: Sat Feb 11, 2017 1:40 am
Posts: 68
Location: France
When the manual speaks, under System, of entering system commands, please give a link to a comprehensive, neat list of those commands.


Top
 Profile  
 
 Post subject: Re: Requested link to doc
Unread postPosted: Sun Mar 05, 2017 10:36 am 
Offline
User avatar

Joined: Sat Dec 08, 2012 2:14 am
Posts: 1128
Location: From Blighty
You can't always guarantee shell commands work on all versions of Android, or particular manafacturers devices.

I think it falls outside the realms of BASIC! to provide one in the manual -- some commands are massively long and complex.

However, in the forum users have provided examples of what they have achieved.

Your best bet, and these boys and girls helped me a lot to understand shell commands is stackoverflow/xda-developers.

Mog


Top
 Profile  
 
 Post subject: Re: Requested link to doc
Unread postPosted: Sun Mar 05, 2017 12:37 pm 
Offline

Joined: Sat Feb 11, 2017 1:40 am
Posts: 68
Location: France
What I asked is only a link, certainly no more. There is no official Android doc?

_________________
Alain


Top
 Profile  
 
 Post subject: Re: Requested link to doc
Unread postPosted: Mon Mar 06, 2017 4:00 am 
Offline
User avatar

Joined: Tue Sep 13, 2011 4:58 am
Posts: 720
Location: Sao Paulo, Brasil
Those commands are quite cryptic, and hard to handle. That is why Mog suggested looking in the forum, for the most used ones. But I do use a tool called google that helps me a lot, even though I haven't used low level commands such as the one you requested.

_________________
Alfredo Peine

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

Hisense Sero 7 Pro (Tegra 3 7" rooted tablet - Android 4.4.4) / Moto G 3rd Gen (5" quad core rooted phone - Android 6.0).


Top
 Profile  
 
 Post subject: Re: Requested link to doc
Unread postPosted: Mon Mar 06, 2017 4:44 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5487
Location: Paris, France
@Sprougnaf https://github.com/jackpal/Android-Term ... -Reference (I googled "android system commands", other results should also be relevant)

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Requested link to doc
Unread postPosted: Mon Mar 06, 2017 7:05 am 
Offline

Joined: Sat Feb 11, 2017 1:40 am
Posts: 68
Location: France
Thanks, Nicolas.It is that kind of link I suggest to put in the Manual.
On my side, I found http://wq.lt/GRRRe, a doc in French about the Bash system. What I wonder: does Android run Ash, Bash or Dash?

_________________
Alain


Top
 Profile  
 
 Post subject: Re: Requested link to doc
Unread postPosted: Mon Mar 06, 2017 9:25 pm 
Offline
User avatar

Joined: Sat Dec 08, 2012 2:14 am
Posts: 1128
Location: From Blighty
I've heard of BASH script not the others. I found out what it stood for whilst glancing at a book in the library the other day about Raspberry Pi.

Bourne Again SHell.

As said not all kernal commands run. You can try looking at adbshell.com

Some run on device.

Some things have reference to other tools to make them work (BusyBox for example).

That's not particularly great if you want to make apps run across devices independently.

No definitive list exists, only ones as water tight as a mermaids bra...

The days of DOS easiness are way over -- we now have flies on our melon patch...

Mog


Top
 Profile  
 
 Post subject: Re: Requested link to doc
Unread postPosted: Tue Mar 07, 2017 12:47 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5487
Location: Paris, France
This snippet should give you all accessible shell commands according to the link in my first post, unfortunately you need to be root to get something:
Code:
BUNDLE.CREATE global % bundle #1

FN.DEF SHELL(cmd$) % execute shell command
  SYSTEM.OPEN      % result (error..) is accessible through SYSLOG$()
  SYSTEM.WRITE cmd$ + " 2>&1"
  c0 = CLOCK()
  DO
    c1 = CLOCK()
    DO
      SYSTEM.READ.READY ready
      PAUSE 1
    UNTIL ready | CLOCK() - c1 > 500
    IF ready
      SYSTEM.READ.LINE answer$
      slog$ += answer$ + "\n"
    END IF
  UNTIL !ready | CLOCK() - c0 > 3000
  SYSTEM.CLOSE
  BUNDLE.PUT 1, "sys-log", slog$
FN.END

FN.DEF SYSLOG$()
  BUNDLE.GET 1, "sys-log", slog$
  FN.RTN slog$
FN.END

SHELL("echo $PATH")
bin$=SYSLOG$()
?bin$
SPLIT bin$[], bin$, ":"
ARRAY.DIMS bin$[],, nbin
FOR i=1 TO nbin
  SHELL("ls " + bin$[i])
  ?SYSLOG$()
NEXT

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Requested link to doc
Unread postPosted: Tue Mar 07, 2017 1:01 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5487
Location: Paris, France
Sprougnaf wrote:
What I wonder: does Android run Ash, Bash or Dash?

MirBSD Korn Shell is the Android shell
Source: Google.

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred