Projects tagged ‘c’, ‘script’, and ‘shell’


Jump to tag:

Projects tagged ‘c’, ‘script’, and ‘shell’

Filtered by Project Tags c script shell

Refine results Project Tags linux (3) python (1) driver (1) block (1) bash (1) boost (1) learn (1) language (1) programming (1)

[4 total ]

0 Users

Il s’agit d’un mini projet fait au cours de notre TP de systèmes embarqués à l'INSAT (Institut National des Sciences Appliquées et de Technologie). Nous avons développé un driver en mode ... [More] block en commençant par développer un module noyau permettant de disposer d’un périphérique virtuel offrant une capacité mémoire de 1Ko. En effet, ce périphérique virtuel pourra être utilisé dans un système embarqué afin de garantir la disponibilité des ressources mémoires de grande taille. Nous avons aussi développé un script Bash ainsi qu’un programme applicatif en C pour tester le périphérique. Dans le dossier source, vous trouverez le ficher minidb.c qui est notre driver, le script ins qui permet d'insérer le driver, le script rmv qui permet de l’enlever, et enfin les scripts test.sh et test.c qui permettent de le tester. [Less]
Created 9 months ago.

0 Users

User could scp files under X.
Created 10 months ago.

0 Users

This tool works with common C++ compilers (such as GCC and VC 7.1) to leverage C++ constructs for scripts. It is simply beyond my grasp that one needs 'special script' languages, like Perl, in order ... [More] to do 'small' tasks. More info is found at http://blog.davber.com. Release information is found at CpshVersion1. Sample SessionsI.e., one can have this shell file, that goes over all files in a given directory and prints out the big ones: #!/usr/bin/cpsh path topPath = argv[1] remove_copy_if ( directory_iterator(topPath), directory_iterator(), bind(less, bind(file_size,_1), 10000000L), ostream_iterator(cout, '\n'));Using ordinary C++ (with the Boost library accessible directly, such as the 'path' type in the filesystem sub namespace) It also comes with an interactive shell, via the '-i' option, enabling sessions as (the text following '>' is what the user types): > vector names; > ? sizeof names < 20 > ? names.size() < 0 > const char* texts[] = { 'John', 'Greg', 'Bob' }; > copy (texts, texts+3, insert_iterator(names)); > ? names.size(); < 3 > transform (names.begin(), names.end(), \ >> bind(substr, _1, 1), \ >> ostream_iterator(cout, ' ')); {ohn reg ob } This is perfect for learning the language or verifying one's knowledge about complicated constructs. So, why learn a new scripting language when all the power you need is available in C++, at least as succinctly expressed as with any other language. Oh, did I forget to mention that C++ executables are a bit faster than interpreted Ruby :-) [Less]
Created about 1 year ago.

0 Users

Some of my personal shell scripts and C and Python Codes.
Created about 1 year ago.