Search Results

Search: Posts Made By: madhur.baharani
6,603
Posted By madhur.baharani
How to pass password and prompt user for IP address while doing ssh and scp?
Hi All,

I want to copy /.ssh/OM.pub file from source to destination.
Here source IP address, username and password is always fixed.
Whereas destination server IP address, password always gets...
3,190
Posted By madhur.baharani
Hi Robin, The menu looks like below ...
Hi Robin,

The menu looks like below

Select the action you want to perform:

1. Tempdb Setup Validation
2. Veritas QIO Validation
3. Sybase Error Logs...
3,190
Posted By madhur.baharani
Hi Robin, Perfect perfect perfect...works...
Hi Robin,

Perfect perfect perfect...works fine as required.

su - sybase -c "printf \"13\n\n0\n\nEXIT\n\" | /var/tmp/db_tools"

Thank You very much :):):)

Regards,
Madhur
3,190
Posted By madhur.baharani
Hi Scott, Initially the below code works and...
Hi Scott,

Initially the below code works and shows the output.

printf "13\n0\n" | /var/tmp/db_tools

But once it displays -> All checks completed!

It again loops for input and displays...
3,190
Posted By madhur.baharani
Hi, I used below su - sybase printf...
Hi,

I used below

su - sybase
printf "13\n0" | /var/tmp/db_tools

Yes, I have to CNTL-C to cancel it.

Regards,
Madhur
3,190
Posted By madhur.baharani
Hi, No below also not working it throws...
Hi,

No below also not working it throws "Script aborted......."

su - sybase -c "/var/tmp/db_tools <<EOT
13
0
EOT" >> logfile

Else can we change the original script as suggested earlier in...
3,190
Posted By madhur.baharani
Hi Robin, When I run the below command ...
Hi Robin,

When I run the below command

su - sybase -c "echo \"13\n0\" | /var/tmp/db_tools" >> logfile

it throws below message in logfile while keep on looping for the user inputs
Script...
3,190
Posted By madhur.baharani
Hi All, Than You for the response. Why...
Hi All,

Than You for the response.

Why not simply modify the db_tools script so that it no longer asks for user input but takes the defaults that you want?
-> Because the db_tools script is...
3,190
Posted By madhur.baharani
How to provide auto inputs for a sub-script within a script?
Hi All,

I am writing a shell script.

#!/bin/bash
cat /etc/hosts
mkdir -p /var/tmp
mount 113.123.35.37:/vol/vol615/syb /var/tmp

In above script I am trying to add below predefined...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 03:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy