miércoles, 18 de septiembre de 2019

The compilation process in c


Image 1. The compilation process

When we try to compile a file (e.g. main.c), we need to understand what the system does. The figure above explains the process of compiling these files.

  • We need to use a compiler (e.g. gcc)
  • The command to compile with gcc is: gcc filename.c
  • The output is the executable file a.out (See image 2)





Image 2. Compilation example

lunes, 16 de septiembre de 2019

Linux link


Image 1. Symbolic Link


Image 2. Hard Link


Every file in the system has an inode (Index node), that contains all file information (Inode number, file size, ouner information, permissions, file type, other) except the contents and name.

There are two types:

- Symbolic links: It is a pointer to the original file.

- ln -s source linkname


Image 3. Create symbolic link


- Hard links: Different name of the same file, same file size, same inode number.





Understanding linux command ls *.c










Image 1.

ls is a unix like system command that prints on screen the content of current directory or the directory that is passed as parameter, as it's shown below.


Image 2.

When the command ls is used with the wilcard * following a file extension (e.g .c), it tells the system that it wants to list all files that have the desired extension regardless of what was before.

Examples:

  • ls
  • ls /etc/init.d
  • ls *.c
  • ls *.txt

martes, 14 de agosto de 2012

SALUDOS...

HOLA A TODOS...

LES DOY LA BIENVENIDA A MI BLOG.



ANDRES MAURICIO CAICEDO RENDON
ESTUDIANTE DE INGENIERIA INFORMATICA
UNIVERSIDAD COLEGIO MAYOR DEL CAUCA
POPAYAN, CAUCA.


ASTERISK

El futuro es ahora...



es una aplicación de software libre (bajo licencia GPL) que proporciona funcionalidades de una central telefónica (PBX). Como cualquier PBX, se puede conectar un número determinado de teléfonos para hacer llamadas entre sí e incluso conectar a un proveedor de VoIP o bien a unaRDSI tanto básicos como primarios.Mark Spencer, de Digium, inicialmente creó Asterisk y actualmente es su principal desarrollador, junto con otrosprogramadores que han contribuido a corregir errores y añadir novedades y funcionalidades. Originalmente desarrollado para el sistema operativo GNU/Linux. Asterisk incluye muchas características anteriormente sólo disponibles en costosos sistemas propietarios PBX como buzón de voz, conferencias,IVR, distribución automática de llamadas, y otras muchas más.
Para conectar teléfonos estándar analógicos son necesarias tarjetas electrónicas telefónicas FXS o FXO fabricadas por Digium u otros proveedores, ya que para conectar el servidor a una línea externa no basta con un simple módem.
Quizá lo más interesante de Asterisk es que soporta muchos protocolos 
VoIP como pueden ser SIPH.323IAX y MGCP. Asterisk puede interoperar con terminales IP actuando como un registrador y como gateway entre ambos.