Programming :: Looking For Educational Bash Projects?
Sep 14, 2010
Have you ever seen a hobbyist electonic Kit? They have projects that try to teach what each type of component does. Is there such a thing for Bash? It would tend to be aimed at tasks that are suitable for bash and not attempt to go over the line of what is better suited as a compiled program. Intuitively I think maybe something that timestamps files; when you download them, or anything else that would keep a home PC better organized is practical.
View 5 Replies
ADVERTISEMENT
Feb 3, 2011
I need to create a SW project both for Windows (written with MS Visual Studio 2005) and Linux. Currently I have a build script for windows and another for Linux. I would like to build the project for both platforms on a single PC. Is there a way of building VS2005 projects with Linux (not using Cmake)?
View 2 Replies
View Related
Jan 16, 2010
I'm trying to write a helper for the mount utility (mount.truecrypt) and there are some things in the util-linux-ng package that would be helpful. For example, in fstab.c, there is a lock_mtab() function. I want to be able to do something like:
Code:
#include "fstab.h"
int main(int argc, char *argv[])
{
lock_mtab();
[code]....
But I don't know how to compile it. I was trying (naively) something like:
Code:
$ gcc mount.truecrypt.c fstab.c -o mount.truecrypt
But I guess the problem is fstab needs a whole bunch of other stuff. Should I just build the entire util-linux-ng package and then use the output somehow? If anyone is interested in mount.truecrypt (to be compatible with mount and /etc/fstab) you might be interested in giving me a little bit of guidance. I've got enough code to build the actual truecrypt command thus far. In fact, it's useable, but not robust (ie, doesn't lock the mtab, etc). You can browse the source for util-linux-ng here: [URL] and download a tagged release here:[URL]
View 5 Replies
View Related
Mar 25, 2010
have a previous background in internet programming languages such as XHTML, DHTML, CSS and javacsript. I would like to start programming and managing my linux system (like an expert) and starting on linux projects also. My question is which is the best programming language to learn: C, C++ (may b even C+), python, Perl etc... I'm learning BASH right now cause I know its a necessity for linux systems. but what would you guys suggest after that I learn.
View 2 Replies
View Related
Mar 11, 2010
I am developing a system in Python that includes an engine and multiple front ends. I am doing the engine and a curses front end together and will add additional FE's later. My problem is that I don't know how to get my front end to import the modules from the engine. I have them set up in Eclipse (using Pydev) as separate projects, but in the same workspace.
I've been a developer for years, but this is my first Python project, and I'm also fairly new to Eclipse. I guess my question is, How do I set up the references to other projects of my own making?
View 1 Replies
View Related
Feb 4, 2010
Can any one point out links to some small projects w.r.t C++ ? Now when I say small projects. It doesn't mean building a calculator or matrix multiplication programs, nor does it mean building games, nor does it mean dealing with databases,
What I actually want is to use the advanced features of C++ like:
i.Templates
ii. Nested friends
iii.Virtual functions
iv. Operator overloading (not merely '+', '-') but '[', '<<' also
View 4 Replies
View Related
May 26, 2010
Essentially, I am reading the book "Absolute Beginner's Guide to C (Second Edition)", but the biggest problem is that it doesn't have problems nor projects to practice programming. Unfortunately, I do not have the greatest of an imagination to create my own ideas for problems to solve. Does anyone know of any sites that have good problems/projects to work on when I learn throughout the book?
View 6 Replies
View Related
Feb 20, 2011
Education repositories - openSUSE. lists repositories for 10.2 and 10.3 and promises 11.1 eventually. 11.2 isn't even mentioned. Where can I find programs that teach spelling, arithmetic, biology, etc.?
View 8 Replies
View Related
Feb 22, 2009
I have in the past few months managed to get several people to switch to Linux just on the merits of its educational programs and games alone. Many people who are interested in educational programs for their children do not know where to find them for windows, and even when they do find them, they cost money, and might be worth nothing. So, i started looking into this on Linux, and did only minimal research on the available programs and games that are educational. I wound up already building 3 new computers that use Fedora, and getting several other people who already have a computer to switch to Fedora, just by making a video on how to use most of the educational programs that are available. This made it easier for those people to learn how to use the programs, especially for those that are not that intuitive, and it also showed them just what was available. [URL]
View 5 Replies
View Related
Jul 5, 2011
I've been trying to build gCompris a childrens educational package. I got the compressed source & build from slackbuilds.org The only dependency mentioned in the readme was gnet so built and installed that ok .
With gCompris the build was progressing fine until a it hit a point at " text2html" .Looked in the 4th install disk of slackware 13.37 no sign of either.looked in slackbuild also no mention of either.
View 11 Replies
View Related
Feb 4, 2011
I would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.
View 3 Replies
View Related
Jan 24, 2010
simple bash code:
Code:
#!/bin/bash
trap "echo 'you got me'" SIGINT SIGTERM # to trap ctrl+c
echo "Press ctrl+c during 5 sec loop"
for ((i=0;i<5;i++)); do
[Code]...
How come code behaves normally and stops when ctrl+c signal is caught and resumes, but after I use at least one timeout read in the code it looks like, if signal is caught again it doesn't pause the execution but skips the loop. If you remove -t (timeout) option from the read, both loops look the same!
View 10 Replies
View Related
Nov 26, 2008
I have a config file that contains:
my.config:
Code:
Now in my bash script, I want to get the output /home/user instead of $HOME once read. So far, I have managed to get the $HOME variable but I can't get it to echo the variable. All I get is the output $HOME.
Here is my parse_cmd script:
Code:
View 3 Replies
View Related
Jul 25, 2011
I have written quite a few separate bash & scripts and php scripts that up to now I have run from cron jobs. However I have to estimate how long each takes to run, before running the next and so it probably takes much longer than necessary to run them all. They have to run in order.
Now there are so many I am thinking it would be better to have a master bash script that would run one after the other, but I am not sure how to get the master script to wait before starting to run the next script. Is this possible and is there a command that will make the script wait between bash and php scripts , for them to finish, before running the next?
View 5 Replies
View Related
Jan 9, 2010
I would like to get the filename (without extension) and the extension separately. The best solution I found so far is:
Let FILE="thefilenameofsomefilesfor_instance.txt"
Code:
NAME=`echo "$FILE" | cut -d'.' -f1`
EXTENSION=`echo "$FILE" | cut -d'.' -f2`
I think it would be better to count the len and remove 3 chars to right to get the extension, but it can be macintosh filenames with have 4 chars for extensions.
View 5 Replies
View Related
Mar 31, 2011
I need to rename the resulted searched files from a loopI have the following code:
find . -name DOC* | while read i
do
find $i -type f -name '*.txt'
done
basically, I am searching for all txt files inside any folder starting with DOC name.this code is working fine with me.I need to rename those .txt files to .txtOLDOS: Ubuntu 10.4Bash shell
View 10 Replies
View Related
Jan 29, 2011
I am trying to write a bash script that sources another bash script. Essentially, I need a few lines to check to see if a certain variable is set. If not, I set it manually, and then source a scripts with that variable in the path. I wrote a test script to try it, but for some reason the last line does not work. Here is what I wrote:
#!/bin/sh
source ~setupdir/setup.shrc #just a test, this line works
echo ${#SETUP} # prints 0 if setup is not set, which it isn't
if [ ${#SETUP} -eq 0 ]
then
SETUP="~setupdir"
fi
echo $SETUP # prints ~setupdir
[Code]...
View 5 Replies
View Related
Feb 4, 2010
I am working on linux administration. I need to backup my project folders regularly. Which is the best method i can choose to backup. I know that I can schedule it through cron. Is there any other best way.? If not where can I get good document about cron. I am using suse linux enterprise server 10 sp3.
View 6 Replies
View Related
Dec 27, 2010
Are their any open source AI projects out there? i just read an old text on neural networking in C++ and would love to paw through someones code.
View 1 Replies
View Related
Aug 14, 2010
i study in the network department in SUST (sudan university for sience and technology) and we are going to be asked for doing the graduation project next term..i need some about WIFI projects or any related thing that is simple and applicable.
View 4 Replies
View Related
Dec 6, 2010
Just give me any project on shell scripting .. to start working on it and practice my self ..
View 2 Replies
View Related
Mar 25, 2010
is it possible to run two different projects at the same time from codeblocks?
View 9 Replies
View Related
Apr 10, 2010
I've been wanting to write a small program for personal purposes in GNOME using Anjuta. I've noticed something strange when I start a new project. I have various options, a GTK project, SDL, XLIB, and GNOME Applet, but no GNOME project? I have the GNOME development libraries installed as far as I know, but the option to create a GNOME 2 project just doesn't appear.
View 2 Replies
View Related
Aug 14, 2010
I am currently doing RHCE. I want to make projects on basis of this.
View 8 Replies
View Related
Feb 18, 2011
I am setting up an SVN server (svn+ssh) that will be used by students at the university where I work. I was considering in the beginning, one single repository and eventually creating directories for each project inside the repository. It seems to me now, that it is not very secure way of doing things. The directory on the server will be with rights 770 and this means that every student can come on the server and sweep out the whole repository.
Also mistakenly or not, every student can 'svn delete' the whole repository, which could be a nightmare to recover from. An issue might be to create groups and then assign users to groups and then create many repositories and each repository to be assigned with group. This means that I will have to manage tens or hundreds of repositories -- maybe not very common task. What is an optimal solution for this working environment.
View 5 Replies
View Related
Sep 18, 2009
1. I have fedora 9 installed, i installed kdevelop using command yum install kdevelop. so i think all the dependencies must have been resolved.
2.Built a new project in the category C++ -> KDE ->Simple KDE Application
3. then i tried to build it with "run automake and success" in the build tab. It was successful.
4. however, with the option "Run Configure" in the build tab again, I got the following:
View 2 Replies
View Related
Nov 18, 2010
I printed Bruce Eckel's book "Thinking in Java" and Bjarne Stroustrup's book "Programming Principles and Practice Using C++". They are just great.I installed Fedora 14 with java development features including Eclipse IDE.Now I want to be able to recreate the examples from the books and experiment over them in Eclipse.I have been working for a while with python and django merely in the terminal and gedit without Eclipse.Please, help me to get started. How can I write my Java or C++ programs as projects in Eclipse?
View 2 Replies
View Related
Jan 5, 2010
If any real hassle using a database between web sites. Not obviously phpBB but rather various projects that need a common read access to maintain a relation
View 1 Replies
View Related
May 30, 2010
I have a slow 3TB usb drive that I keep my video projects on, but when I'm working on a project I want to have the files on my main HD so that the video editing is less painful. So here is my question: is there a way to have a folder on my main computer that syncs files *as they are needed* to my main drive, then when they are edited sync them to the USB drive again?
So if I have a folder with 100 clips on my USB drive, can I sync just the directory listings to the local folder, then when I add a video to my project file and it is read by the video editing software, then just that file is synced to my local folder? Then, when I close the terminal with this app running, or some other signal the local folder is destroyed (all of the files are synced to the USB drive once they are changed).
View 4 Replies
View Related
Oct 9, 2010
-Which to choose? Desktop or Netbook. I have a HP G61 Laptop.
Specs:
Manufacturer: Hewlett-Packard
Model: HP G61 Notebook PC
Processor: AMD Sempron M120 2.1 GHZ
Ram: 3.00 GB
System Type: 64-Bit
-Is there any programs that will allow me to open VC++ projects on Linux C++ compilers? All my work has been on Microsoft VC++ and I don't wanna start over(main reason I haven't switched).
-Perks of using Linux? Cons?
View 9 Replies
View Related