# HG changeset patch # User František Kučera # Date 1282077556 -7200 # Node ID 7453f9ec8b309b099a3a386cd8f10da8e254994c # Parent 7b718fcf981cb0cfa1b40ecc8b3d46f1e42ed00e bash-offline – ukázka offline shellu diff -r 7b718fcf981c -r 7453f9ec8b30 c++/bash-offline/kompiluj.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/c++/bash-offline/kompiluj.sh Tue Aug 17 22:39:16 2010 +0200 @@ -0,0 +1,4 @@ +#!/bin/bash + +g++ program.cpp -o bash-offline; + diff -r 7b718fcf981c -r 7453f9ec8b30 c++/bash-offline/program.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/c++/bash-offline/program.cpp Tue Aug 17 22:39:16 2010 +0200 @@ -0,0 +1,10 @@ +#include +#include + +int main() { + using namespace std; + cout << "\033[22;31m" << "Vítejte v offline shellu" << "\033[0m" << endl; + system("/bin/bash"); + cout << "\033[22;31m" << "Končím offline shell" << "\033[0m" << endl; +} +