For questions relating to shells and kernels.
-4
votes
0answers
48 views
Shell scripting execute commands from a command line [closed]
This is my assignment Question and I'd like someone to give me some clue so i can start the assignment.
Create a new file shell.c (or shell.cpp if you prefer C++). This will be our main shell program ...
3
votes
1answer
424 views
Is it possible to use python as a shell replacement? [duplicate]
Recently I was looking at python's shutil and subprocess etc... And I started wondering: wouldn't it be ok to use python instead of e.g. bash?
What am I missing?
0
votes
3answers
231 views
Which language is more suitable heavy file tasks?
I need to write a script (based on basic functions) to process /image/audio/video files. The process is mainly filesystem tasks and converts. The database of files has been stored by mysql. The script ...
1
vote
2answers
194 views
DB API for shell scripting (any shell)
I am faced with some legacy shell scripts that run batch data processing jobs in Oracle using SQL+. For the most part, the data tier does not have to communicate back to the script with retrieved ...
-2
votes
1answer
117 views
C Minishell Command Expansion Printing Gibberish
I'm writing a unix minishell in C, and am at the point where I'm adding command expansion. What I mean by this is that I can nest commands in other commands, for example:
$> echo hello $(echo ...
2
votes
6answers
405 views
Is it a bad practice to write shell script with many if-else statment and for loops?
I am maintaing several data process shell scripts which are full of if-else statements and for loops . I try to make the scritps tidy and easy to debug.
When I read some suggestions about shell code ...
3
votes
3answers
190 views
Difference between a REPL and interactive shell
Noob question. I am not quite able to tell the difference between a REPL and an interactive shell just by reading the definitions on Wikipedia.
Wiki notes that REPL is a particular kind of ...
8
votes
3answers
774 views
User Configuration of a Shell Script. Best practices?
I am writing a shell script with a few variables that should be configured by the user. There will be an installer for downloading and configuring the script, possibly by asking a series of question. ...
1
vote
1answer
444 views
Why would I want to use CRaSH?
Justed stumbled across CRaSH and although it looks mighty interesting, I'm wondering why a Java developer should invest time & energy into learning (yet another) shell language. What sort of ...
3
votes
2answers
192 views
Are “backwards” terminators for if and case unique to shell scripting?
In bash at least, if and case blocks are closed like this:
if some-expr
then
echo "hello world"
fi
case $some-var in
[1-5])
do-a-thing
;;
*)
do-another-thing
esac
as opposed to the ...
3
votes
3answers
1k views
Why most use Cygwin and not Uwin?
Most academic researchers I know target just *nix, and rely on Cygwin to make their applications available on Windows. I have tried many of these projects and always found them too unstable for ...
0
votes
3answers
586 views
How to set-up a simple subversion workflow
I am trying to set-up a simple SVN workflow at home. I am new to subversion (and programming) so I have been reading the official PDF documentations but still not sure about how to set-up my ...
5
votes
8answers
2k views
What's shell script's advantage over interpreted programming languages?
(I'm not sure if it's a appropriate question here)
Shell scripts, like those written in bash, can do many things. They can call Unix programs, pipe their output, redirect I/O from/to files, control ...
1
vote
1answer
576 views
Why no more macro languages?
In this answer to a previous question of mine about scripting languages suitability as shells, DigitalRoss identifies the difference between the macro languages and the "parsed typed" languages in ...
0
votes
1answer
60 views
Which technology should be used for a minimal Job Controlling System on Linux shell? [closed]
I'm designing some sort of console tool for linux shell, which must be able to start processes in the background and, depending on their output, continue it's functonality in a specific manner.
...