9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I have to create a quiz im form of bash-shell-script.
The problem is: I don't find a way to bring multiple choice questions to work. As long as someone selects only one of the possible answers everything is fine, but if one selects two or more options it doesn't work.
The code I used is... (4 Replies)
Discussion started by: Naky
4 Replies
2. UNIX for Dummies Questions & Answers
Hello, I'm currently implementing the && function in a shell using C. For example, if we input cmd1 && cmd2, then cmd2 executes only when cmd1 exits successfully. I'm thinking about:
int main() {
int i;
char **args;
while(1) {
printf("yongfeng's shell:~$ ");
args =... (5 Replies)
Discussion started by: Yongfeng
5 Replies
3. Shell Programming and Scripting
Hi,
I am facing one issue.I am working on one script where I want to implement one check
PSS/TFM/Coupon/trunk/CouponProject/CouponService/src/test/java/com/travelport/service/pss/coupon/validator/CouponValidationReqValidatorTest.java
Now my problem is or requirement is if the above... (1 Reply)
Discussion started by: anuragpgtgerman
1 Replies
4. Shell Programming and Scripting
On Linux OS, bash environment, I want implement the following code:
if && ( || )
A,B,C represents some compare conditions.
How to realize it ?
Thanks! (1 Reply)
Discussion started by: qcmao
1 Replies
5. Programming
hi all,
i have a table with employee details like his name,addr,DOB etc.
i need a shell program which takes one date as input from user and print the employees whose DOB is less than that date.
in sql package the select query is written (2 Replies)
Discussion started by: vidyaj
2 Replies
6. Shell Programming and Scripting
I have been asked to create a shell script that accepts a number of SQL select queries as input, runs them in sequence, spools the output to an EXCEL workbook, where, each worksheet is an output of a Select statement run above.
The workbook should be in a .XLS format. If a particular select... (2 Replies)
Discussion started by: ShellNovice1
2 Replies
7. Shell Programming and Scripting
Most shells flavors do not have associative arrays a.k.a. maps.
How would you emulate an associative array?
I had this problem once and found a working solution, but I don't want to spoil the game hence I wont tell it.
Wonder if anyone comes up with something better. (5 Replies)
Discussion started by: colemar
5 Replies
8. Shell Programming and Scripting
Hi,
I want to ask if anyone has any ideas, why the batch file i created to transfer files on my desktop doesn't run after i put this line in /etc/passwd and any idea to overcome it ? Thanks
user:!:xxx:xxx::/home/user:/usr/local/bin/ssh-dummy-shell (2 Replies)
Discussion started by: DarReNz
2 Replies
9. Shell Programming and Scripting
A shell in crontab per 5 min write a file
B shell in crontab per 6 min read a file
how to lock the share file a ;avioid confilict in write and read?
Thx : -) (1 Reply)
Discussion started by: zz_xm
1 Replies