After several posts, please let us know about your envirnment:
Please post:
The SHELL variable will not necessarily tell you what shell is being used to execute the script, and the system is irrelevant to this script.
Quote:
On one of your earlier posts I commented anout the contstruct of a function.
You post:
Quote:
This is not correct syntax.
It is acceptable in bash, but it is neither standard nor ksh.
(Functions appeared first in ksh, with the syntax function funcname { ... }; then Bourne added functions to his shell using what is now the standard syntax, funcname() { ... }.
Quote:
Try:
... ---------- Post updated at 00:59 ---------- Previous update was at 00:54 ----------
@cfajohnson
Quote:
Unix has many shells, but there is only one "Unix shell", i.e. the POSIX shell.
You are joking LOL?
No, I am perfectly serious. The "Unix shell" is, by definition, the POSIX shell. There are various implementations of the standard shell (bash, dash, ksh93), and some have a number of additions. There are also other shells (rc, etc.) that do not implement the standard Unix shell.
This User Gave Thanks to cfajohnson For This Post:
Im creating a sort of shell, for my cybercafe
This will restrict my clients from accessing unwanted materials
so im programming a similar bash to
1. to meet my goals
2. to learn new things.
im creating it in C,
please have a look at the attachement.
i wish to avoid having a blank space... (6 Replies)
i'm trying to learn unix and i posted a question and what i was typing from school. i can't figure it out. how am i supposed to learn , when i get shutdown by an admin. for posting a homework question. doesn't make any sense. its a dumb rule. thanks for helping (4 Replies)
Hi,
I am trying to attach tape drive to sun V890 running Solaris 9 on it.
I have installed HBA(qlogic) in slot 1 of 0-8 slots and booted the system. I do not see HBAin prtdiag output. The tape drive is not attached to HBA. The tape drive I am going to attach is Sony AIT3.
1.How can I make... (3 Replies)
Hi ,
I have already posted a post regarding this, but i didn't get my problem solve, so some body help me as it was urgent for me, my mail option is not working, when i send a mail, it is strucking in /var/spool/mqueue folder. and i am getting struck there itself, i see below two files are... (1 Reply)
Following is d code snipet
#!/bin/ksh
retVal=`sqlplus -s user/passwd\@oracle_sid <<EOF
SET SERVEROUTPUT ON SIZE 100000
DECLARE
STATUS_VALUE VARCHAR2(1);
BEGIN
SELECT temp1 INTO STATUS_VALUE FROM sai;
DBMS_OUTPUT.PUT_LINE(STATUS_VALUE);
END;
/
exit;
EOF`
echo "Return Value... (4 Replies)
I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)