Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 30 Sep 2014, 20:01
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars ) » Usuarios de habla Hispana
SHC: Generic shell script compiler
Moderators: rarsa
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
mama21mama

Joined: 03 Apr 2010
Posts: 526
Location: Lincoln, Buenos Aires, Argentina

PostPosted: Fri 11 Mar 2011, 02:18    Post subject:  SHC: Generic shell script compiler  

Shc es un compilador generico de la shell de Linux, con lo que podremos transformar nuestros scripts en binarios ejecutables, pero ademas de compilar tambien nos transformara nuestro script en lenguaje de programacion C.

Sintaxis

Para compilar un script lo hariamos de la siguiente manera:

Code:
shc -f script.sh

Y obtendriamos dos archivos, que serian el binario ejecutable, y el archivo en C

- script.x ---> Binario Ejecutable
- script.x.c --> Archivo en C

Fuente
shc-3.8.6_lupu-520.pet
Description  MD5sum: c155cdde7d8347e58f4ac94a0d094c08
pet

 Download 
Filename  shc-3.8.6_lupu-520.pet 
Filesize  17.33 KB 
Downloaded  189 Time(s) 
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
mama21mama

Joined: 03 Apr 2010
Posts: 526
Location: Lincoln, Buenos Aires, Argentina

PostPosted: Sat 12 Mar 2011, 00:06    Post subject:  

Code:
shc -e "1/03/2011" -m "contacte con el desarrollador" -v -f script.sh   


probamos el resultado
Code:
./script.sh.x


ejemplo para hacer expirar con un mensaje
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars ) » Usuarios de habla Hispana
Jump to:  

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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0384s ][ Queries: 12 (0.0033s) ][ GZIP on ]