bash-offline – ukázka offline shellu
authorFrantišek Kučera <franta-hg@frantovo.cz>
Tue, 17 Aug 2010 22:39:16 +0200
changeset 137453f9ec8b30
parent 12 7b718fcf981c
child 14 90b924d89579
bash-offline – ukázka offline shellu
c++/bash-offline/kompiluj.sh
c++/bash-offline/program.cpp
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/c++/bash-offline/kompiluj.sh	Tue Aug 17 22:39:16 2010 +0200
     1.3 @@ -0,0 +1,4 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +g++ program.cpp -o bash-offline;
     1.7 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/c++/bash-offline/program.cpp	Tue Aug 17 22:39:16 2010 +0200
     2.3 @@ -0,0 +1,10 @@
     2.4 +#include <stdlib.h>
     2.5 +#include <iostream>
     2.6 +
     2.7 +int main() {
     2.8 +    using namespace std;
     2.9 +    cout << "\033[22;31m" << "Vítejte v offline shellu" << "\033[0m" << endl;
    2.10 +    system("/bin/bash");
    2.11 +    cout << "\033[22;31m" << "Končím offline shell" << "\033[0m" << endl;
    2.12 +}
    2.13 +