![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| question about testing in shell programming | thungmail | Shell Programming and Scripting | 6 | 04-09-2008 03:04 PM |
| question about testing in shell programming | thungmail | Shell Programming and Scripting | 2 | 04-08-2008 03:29 AM |
| question about testing in shell programming | thungmail | Shell Programming and Scripting | 3 | 04-05-2008 11:29 AM |
| question about testing in shell programming | thungmail | Shell Programming and Scripting | 3 | 04-02-2008 11:46 PM |
| question about about Shell programming | thungmail | Shell Programming and Scripting | 1 | 04-01-2008 02:40 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Question about Shell Programming
First, I'd like to know if being a shell programmer considered a "real" programmer. is it??
also, I do create a lot of shell programs which includes full scripts to create users and maintaining records. ie phone records. now, I hear the programmer has to do some cleaning up after the program he/she created finish running. I dont understand this part. what does that mean??? are there any relevant cleaning up I need to know about??? Please, any share any information you might have about this topic. thanks |
|
||||
|
The question of what is 'programming' or not is actually quite interesting.
The autors of Beta (www.mjolner.com - look for Beta, Solaris or Linux version) say that everything relating to system development is programming, including drawing up UML diagrams, doing object analysis, even requirements alalysis. This is why their Mjølner system can be programmed using UML diagrams (the object analysis part,anyway). If shell programming is not programming, then what is? The only difference between a shell script and a binary is in the way it is being executed - completely transparent to both programmer and user. If interpreted programs were not 'real' programs, then what to say about Java? Java programs are interpreted /and/ compiled! In fact, there is nothing that stops you from writing a compiler for you shell script and running it as a binary ... or running a C-program in an interpreter. I know what this is about: What is the most macho programming one can do? Answer: cat > prg. Then enter the ASCII codes that correspond to the CPU instructions you want executed, if one of them is 0x4 then you can not continue, MOV store to accumulator on a 16-bit ISA PC system, fx. is in binary 1010000wLLLLHHHH, you fill in the operands, look up the corresponding ASCII characters, and write them into the file after the ELF header and stuff. That way, you can run 'arbitrary code' on a Linux system with only cat and write permissions as your tools. You don't get more macho than that, but is it 'programming'? Sure! Is it 'serious programming' - no way! |
|
|||||
|
Cleaning up, in many cases that I've seen in shell scripting, means removing any temp files, unsetting any variables that may make it into a shell session (doesn't happen all that often - most scripts are run as a child process, as opposed to "sourced", or run as a string of commands in the current process), and handling signals properly (if the job runs as a daemon, does it ignore the SIGHUP signal correctly? What does the script do when it hits an error, or something it doesn't know how to deal with?).
Any other things to watch out for, anyone? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|