03-22-2006
Perderabo, one more time, thanks for your help. And thank you very much for the documentation, I appreciate when someone replys with some good information backing up what they do. This is cool stuff, I learn one new thing every day about unix in general.
Thanks to all!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm wondering if there is a way to zip a file and password protect it non-interactively.
zip -e will prompt for a password but I don't want a prompt. This needs to be done automatically as part of a shell script.
I'm using the zip command because the will be unzipped by a Windows machine. ... (1 Reply)
Discussion started by: savage66
1 Replies
2. Shell Programming and Scripting
hi,
To search and replace a string in multiple files i am using following command:
find . -name '*.txt' -print0 |xargs -0 perl -pi -e 's/find_string/replace_string/g'
I want to be prompted while replacing the string.
how this can be done.
thanks for every help. (2 Replies)
Discussion started by: aks__
2 Replies
3. UNIX for Advanced & Expert Users
Hello,
I am making a script to copy files interactively from one directory to another using the "i" option because I dont want to overwrite the files.
cp -i *.html ./../otherdir/
cp: do you want to overwrite (y/n) ?
I used
cp -i *.html ./../otherdir/
ans='n'
read $ans
... (4 Replies)
Discussion started by: telecomics
4 Replies
4. Shell Programming and Scripting
My application has r.cron file which removes the cron job automatically during un-installation (pkgrm). But I want to take user input to decide on the deletion of cron job. I tried to put the code (to prompt user) in r.cron itself. But it is not waiting for user input. Where can I put that code? We... (0 Replies)
Discussion started by: durbam2002
0 Replies
5. Shell Programming and Scripting
Hi guys,
I am using Solaris 10 and we install IBM OnDemand server there. there's a command called arsload that we use to load document and query document too. I need to write a script to query document but when querying document, this command prompt for username then password.
My question is... (3 Replies)
Discussion started by: markthien
3 Replies
6. HP-UX
Hello
Am trying to run top /glance non-interactively using ssh
from redhat to hp-ux hosts
but getting following errors..
=======================
ssh msi 'top -n 1'
Sorry, I need to know a more specific terminal type than "unknown".
ssh msi top -d1 -n20 > /tmp/top.out
Sorry, I need... (3 Replies)
Discussion started by: delphys
3 Replies
7. Shell Programming and Scripting
hi,
i have script which installs around 20 packages. during installation of each package script will be prompted for user input.
i need to run the script in non-interactive by using here document. is it possible to generate here document by running the script in interactive mode on Solaris?... (1 Reply)
Discussion started by: snreddy_gopu
1 Replies
8. Solaris
Hi there
I have a global zone with 178 zones on it :-)
The entire box is moving to an entirely new network and I need to write a script that will configure the zones config file in /etc/zones for each of them changing the IP address - but non-interactively
The line I need to change would... (5 Replies)
Discussion started by: hcclnoodles
5 Replies
9. Shell Programming and Scripting
I have 300 servers listed in servers.txt
I motto is to check if my id "user1" has sudo privileges on the 3000 servers. I m using sudo -l to check if I have privileges or not. If wish to check this either non-interactively; if not; interactively.
Below is the script I wrote:
... (5 Replies)
Discussion started by: mohtashims
5 Replies
10. UNIX for Beginners Questions & Answers
The below command works in the terminal interactively but not as part of a bash script. I though maybe I needed to escape the "$dir" so it isn't interpreted literally, but that's not it. Thank you :).
interactively in terminal
dir=/path/to
new=$(ls "$dir"/*.csv -tr | tail -n 1) && echo... (6 Replies)
Discussion started by: cmccabe
6 Replies