Thanks for all your responses, appreciate it. I was able to put up a script 
that does the job

On Thursday, April 26, 2012 11:02:51 PM UTC-7, Alvin Wong wrote:
>
> Hi, 
>
> If you need to do some setup job (for example setting hardware, e.g. 
> cpu scaling) you can use a script, just look into `init.goldfish.rc` 
> and `/system/etc/init.goldfish.sh`. 
>
> However I don't think you would like to show something in the console. 
> Android has a GUI, and normally you don't want to show information to 
> the user in this way. 
> If this is for debug purpose, you'd probably use `logwrapper` to wrap 
> your script or use output redirection (`command > file`) for commands 
> in your script, or just type into the serial console or adb shell, or 
> you can even use Terminal Emulator. 
>
> You know, we don't usually expect and don't need the output of 
> services to show in the console. All services launched by `init` are 
> redirected to `/dev/null` so you cannot see them. 
>
> Perhaps you can point out what exactly you want to do and some of us 
> would help you decide the best way to do that. 
>
> Good luck, 
> Alvin Wong 
>
> On Apr 27, 3:28 am, HV <[email protected]> wrote: 
> > I wanted the commands that I'm running from within the script get 
> > translated on to the console. But, I guess that's not possible 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Thursday, April 26, 2012 12:18:35 PM UTC-7, Chris Stratton wrote: 
> > 
> > > On Wednesday, April 25, 2012 2:59:01 PM UTC-4, HV wrote: 
> > 
> > >> With this, I do see the service kicking in. The next challenge is how 
> do 
> > >> I get the script to work. Say if I want to cd /mnt/sdcard & this 
> should 
> > >> show up in the shell prompt. Is that doable? In other words, it 
> should work 
> > >> exactly as though I'm manually running the script 
> > 
> > > Are you saying you want to pre-run commands in the adb shell session? 
>  Or 
> > > the shell of a terminal emulator on the device?

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to