The last days I extended an open-source C++ library by some faster functions. This library provides a lot of short test programs which guarantee that the library works exactly.
The compilation of each test works in a Makefile automatically.
What I need is a shell script which executes all the build programs one after another. Furthermore I would like to get prompt to press the return key between two program executions.
Since I have nearly no experience with unix shell programming I would be glad if anyone could tell me how to do this.
But is there a possibility to read out all programs (all files without an anding) automatically? So that I do not have to write all targets in a makefile?
Something like:
foreach program in listOfProgramsInCurrentDir
run program
Probably, but you never gave any information whatsoever on that; do you have a list, or are we supposed to trawl the current directory for executable files, or executables but not scripts(if there's a ./configure in there you probably don't want your test system to run it! ) or should we look for files with a certain extension, or are you expecting us to query the makefile itself somehow, etc, etc, etc. Your pseudocode was the first hint we had.
1. The problem statement, all variables and given/known data:
Get each of these programs to run. Prove that you've done this(use script). Give a description of each program along with sample executions.
These are the exact programs we were given.
2. Relevant commands, code, scripts,... (11 Replies)
Hi,
I want to execute .rdf file which uses oracle report in crontab ..Can you please help me out how to schedule it crontab.as it is a rdf file
Please give any suggestions regarding the above issue. (0 Replies)
hi all,
this is my first post here...i hope that this is the correct section to write my question.
I have a distro linux without gui, only text mode.
So, it's possible run automatically a command or a program as "top" or "ping" and get the result on the main shell , after the boot and after... (6 Replies)
Figured out the first half but am still having a little trouble shooting problem with the Initialization Files. I am working in bash on a remote server.
When I log on I am seeing the correct prompt but right before that I am also seeing this
the id -u integer expression expected is what... (2 Replies)
Hi,
I want to make changes to inittab file and reread it using "telinit q" to make changes effective immediately. Is it safe to do that while important apps are running ?
thanks
Vilius (1 Reply)
I need help to create batch file .
I want to run some programs in sequence in batch mode . I have one file which contains the name of program and command
The test.bat file contain this data
stsrun -v devel area1.exp
stsrun -v devel prime1.exp
stsrun -v devel treat.exp
Please help... (1 Reply)
Hello;
I have a directory that is collecting log and act files. I need to write a script that will remove these files once they are 30 days old. I have read through a number of threads on this site that have given me a great deal of information. However I have what seems to be a unique... (7 Replies)