10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i use this command to make pkgadd non-interactive.
Command1:
echo | sudo /usr/sbin/pkgadd -n -a /u/base/admin -r silent.txt -d /tmp/dbs.pkgThis works fine if i run it as root user but when i run it with non-root user it prompts me for the password and then executes successfully thus making it... (9 Replies)
Discussion started by: mohtashims
9 Replies
2. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
1) The script is executed in the Korn shell.
2) Name the shell script file is asg6s.
3) The asg6s file is... (7 Replies)
Discussion started by: ProgMan2015
7 Replies
3. Programming
DELETED (2 Replies)
Discussion started by: ProgMan2015
2 Replies
4. Shell Programming and Scripting
Task A: Make a one-line Unix command - using pipe(s) - to display the number of files in your home directory including the hidden files that begin with '.'
Task B:Make a one-line Unix command - using pipe(s) - to display the number of unique zip codes in famous.dat (hint: use -u on sort)
Task... (1 Reply)
Discussion started by: wises
1 Replies
5. AIX
Hello,
Script command helps to save command output to file. (Redicection doesn't work in this case).
Besides interactive shell 'recording', Linux script command has "-c" option which allows to record output of some non-interactive command.
The problem is that AIX script command variant... (6 Replies)
Discussion started by: vilius
6 Replies
6. Homework & Coursework Questions
I have no idea what the following means. The teacher is too advanced for me to understand fully. We literally went from running a few commands over the last few months to starting shell scripting. I am not a programmer, I am more hardware oriented. I wish I knew what this question was asking... (3 Replies)
Discussion started by: Wookard
3 Replies
7. Homework & Coursework Questions
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts for deletion of the file.
If user supplies arguments with the script , then it works on those files... (8 Replies)
Discussion started by: rits
8 Replies
8. Shell Programming and Scripting
Hi,
I am new to shell scripting.I have written a very simple shell scipt that asks for the username and password on executing. i.e
echo "Enter username :"
read usrname;
echol "Enter password :";
read passwd;
echo usrname;
echo passwd;
but now I want to make it automatic , such... (2 Replies)
Discussion started by: bhaskar_m
2 Replies
9. Linux
Linux, C++, make, macro
In source code, we used some #ifdef macros. How can I enable #ifdef macro in the command line of "make" (NOTE: I do NOT want to change source code or makefile to define that macro from time to time).
e.g. test.cpp:
...
#ifdef TEST1
// code segment for test1
...... (3 Replies)
Discussion started by: princelinux
3 Replies
10. Shell Programming and Scripting
Experts,
I tried to make my cshell script interactive by asking the user for password and trying to read the input using the "read" command. I have been unsuccessful so far. Do you have any idea ?
Thanks
Jim (2 Replies)
Discussion started by: jimmynath
2 Replies