If you want to give yes,you change 'y' in the following script.If you want to give no,then you change 'n' in the following script.I tested the script with
rm -i option which will ask user confirmation before removing the file.
NOTE:You try this.Because,in my environment,the above commands aren't working.But,I tested this rm command with -i option.
Did not. Is this possibly due to the extra pipe at the end for |(cd /mnt; ufsrestore xvf -) ?
Just for the heck of it, I also tried
with full failure.
Thanks.
---------- Post updated at 04:12 AM ---------- Previous update was at 03:23 AM ----------
I'm not to sure if I have the syntax right, but both of the following failed
As far as the script that you have mentioned, I'm not to sure how I can incorporate the answers with the commands that I am using.
Where would I insert the $a? I can't echo it. I can't place it on a separate line or it one initiate until the first command is over. ufsdump/ufsrestore
I tried:
but it doesn't work due to a "Broken Pipe"
1) whats the output of the below script, when executed at the command line
vi test.ksh
echo 'output $@:'$@
echo 'output$#:'$#
----------------
cmd execution as follows
$test.ksh Hello"
a)output $@:1,output $#:Hello
b)output $@:Hello,output $#:1
c)output$@:,output $#:
d)None of the... (4 Replies)
Hi masters,
How to get auto answer option in scripting. for example in my script i uses the gpg command , in that beginning it will ask
passpharse : ( in that i need to type my passpharase)
and once i typed it will ask
Use this key anyway? ( for that answer will be yes)
for... (1 Reply)
Hi everyone,,
I am new to the forum...but not to Unix.
I have gathered few questions from my mates who attended interviews in various companies as I have to attend one on dec 3rd for Sys admin position. Please respond with the answers you know and also help with various other interview... (2 Replies)
Hello everyone
I update my question.
Thanks for your reply joeyg
If I type the last command and send to a text file. I get this
last >usuarios.txt
root pts/0 160.40.35.277 May 22 11:08 still logged in.
root pts/0 alopez02 May 22 09:23 - 10:11 (00:47)
root pts/0 160.40.35.277 May 20... (0 Replies)
Try to answer these questions on Unix:
1.what will be the segment() function do?
2.How Unix is more powerful than Windows?
3.Where ownership details will be stored of a particular file in Unix?
4.State different uses of ^ symbol in regular expressions.
5.What does export command used for?... (5 Replies)
Hi i am trying the threads concept in unix environment using C...
but i am getting error of "wait_fd: Couldn't find procinfo for fd 24"...
what does this error mean.....
help me in solving this issue...
Thanks in advance
shivamasam (3 Replies)
Q.1 Diffrence between terminal and pseudo-terminal ?
Q.2 What is terminal login ? What is a netwok Login ?
Q.3 What is meant by baud rate of a terminal ?
Q.4 which structure is used for job control in Unix/Linux ?and where these structure are means in which directory ? (2 Replies)
Hi folks,
I Got a little question here,
When i try to start a telnet session to my unix server, the unix server states the following message:
telnetd: All network ports in use.
Connection closed
I know it has something to do with pseudo tty's?
I've tried to search the... (3 Replies)