9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I copied the script from an AskUbuntu post -
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
... (14 Replies)
Discussion started by: Hijanoqu
14 Replies
2. Solaris
I just took delivery of an Ultra Sparc 60 box. I tried to install Solaris 10 from the cdrom by issuing the following command at ok prompt: ok boot cdrom, and I am getting an error message that says: "Boot device: /pci@1f,4000/scsi@3/disk@6,0:f File and args: can't open boot device. What am I... (2 Replies)
Discussion started by: ijeoma
2 Replies
3. Shell Programming and Scripting
Hi,
I am writing an interactive shell script (ksh) but I have no idea how I could make a condition on it :
Variables :
rep_config="${rep_tools}/_CONFIG"
rep_config_old="${rep_config}/_PROTO_OLD"
Here is the interactice part :
lst_proto=$(cat... (2 Replies)
Discussion started by: Aswex
2 Replies
4. Shell Programming and Scripting
Hi,
I need to sftp from one Unix Server (source) to another (destination) (both SunOS) non-interactively.
I did the following :
1) Generated public key in source server in $HOME/.ssh dir without giving any passphrase
2) Added the contents of the public key generated to authorized_keys2... (7 Replies)
Discussion started by: Sabari Nath S
7 Replies
5. Shell Programming and Scripting
I wanna edit a file non-interactively using vim editor
The file contains a line:
ACTIVATIONCODE=
I have a variable called ACT. I want to edit the file non-interactively using vim such that the concerned line is converted to:
ACTIVATIONCODE=contents of the variable ACT
---------- Post... (1 Reply)
Discussion started by: proactiveaditya
1 Replies
6. 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
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... (1 Reply)
Discussion started by: rits
1 Replies
8. UNIX for Dummies Questions & Answers
I would like to ask if anyone knows of a Unix program that is like patch(1), but applies each diff interactively so I can decide on whether to apply a particular diff.
This is my situation: someone has made certain changes to a file I created, sent me the modified copy and I would like the... (2 Replies)
Discussion started by: cbkihong
2 Replies
9. UNIX for Dummies Questions & Answers
:confused: Can anyone please tell me how to get into Interactive Mode? (2 Replies)
Discussion started by: Nomad
2 Replies