Thread View: fr.comp.os.android
3 messages
3 total messages
Started by marc
Tue, 08 Nov 2011 22:33
scripts bash sous android
Author: marc
Date: Tue, 08 Nov 2011 22:33
Date: Tue, 08 Nov 2011 22:33
56 lines
2276 bytes
2276 bytes
J'ai qq scripts sous mon ubuntu, comme:
ouifm:
mplayer http://ouifm.ice.infomaniak.ch/ouifm-high.mp3
mais aussi des script qui telechargent des pdfs journaux comme 20min.fr etc,
comment les mettre et utiliser sur android?
- Le nom d'un mediaplayer
- C'est posible de lancer dans un terminal app une application graphique??
Un pdf journal: (un des
http://www.newspaperinnovation.com/index.php/europe/ )
doc=$(date +%Y%m%d)
twmin=${doc}"_BOR.pdf" #Bordeaux
twmin=${doc}"_LIL.pdf" #Lille
if [ -f $twmin ];
then
echo $twmin already exists, you ve read it
#exit 0
#http://pdf.20minutes.fr/journal/20060505_LIL.pdf
#http://20minutes.s3.amazonaws.com/20070507_LIL.pdf
else
twminlink="http://cache.20minutes.fr/pdf/2011/quotidien/"$twmin
echo $twminlink
wget $twminlink
fi
ispdf=`file --brief $twmin | cut -c1-3`
if [ "$ispdf" = "PDF" ];
then
evince -f $twmin &
fi
--
--
What's on Shortwave guide: choose an hour, go!
http://shortwave.tk
700+ Radio Stations on SW http://swstations.tk
300+ languages on SW http://radiolanguages.tk
Re: scripts bash sous android
Author: Doug713705
Date: Wed, 09 Nov 2011 07:43
Date: Wed, 09 Nov 2011 07:43
28 lines
2435 bytes
2435 bytes
Le 08-11-2011, marc nous expliquait dans fr.comp.os.android : > > J'ai qq scripts sous mon ubuntu, comme: > comment les mettre et utiliser sur android? > [SNIP] > wget $twminlink Le probl�me n'est pas tant le bash (quoique) mais les programmes externes qu'utilisent ton script (ici wget). Je n'ai pas v�rifi� mais je ne suis pas s�r que wget existe pour Android et encore moins qu'une fois install� il puisse �tre appel� directement par un script. Personnellement j'avais install� une console[1] (dont j'ai perdu le nom mais qui se trouve facilement sur le market officiel) mais devant le bridage du syst�me, cette console s'est av�r�e globalement inutile. [1] sur un HTC Desir roulant Android 2.2 -- Doug - Linux user #307925 - Slackware64 roulaize ;-) http://usenet-fr.chainon-marquant.org http://newsportal.chainon-marquant.org http://news.chainon-marquant.org
Re: scripts bash sous android
Author: marc
Date: Wed, 09 Nov 2011 22:10
Date: Wed, 09 Nov 2011 22:10
26 lines
1974 bytes
1974 bytes
Doug713705 wrote: > Le problème n'est pas tant le bash (quoique) mais les programmes > externes qu'utilisent ton script (ici wget). > Il y a "curl" aussi. ET ... regardez une fois "Linux installer" de http://android.galoula.com/en/LinuxInstall/ comme environnement chroot pour l'instant, j'ai une telephone 128Mb, j'attends une tablette 10" / 512/1Ghz, http://product.madeinchina.com/10-1-quot-flytouch-3-android-2-2-tablet-pc- GPS-3G_13179852.shtml -- -- What's on Shortwave guide: choose an hour, go! http://shortwave.tk 700+ Radio Stations on SW http://swstations.tk 300+ languages on SW http://radiolanguages.tk
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads