Search Results

Search: Posts Made By: confused_info
2,610
Posted By confused_info
Hi, I dont know if this is the best way of...
Hi,

I dont know if this is the best way of doing this, but it works.



output()
{
echo $1 >> $2
echo $1
}

if [ -n "$result" ];
then
output "$result doesnot match with...
2,610
Posted By confused_info
HI, You can add the below code to script...
HI,

You can add the below code to script file.
set -x
22,631
Posted By confused_info
Thank you , it worked. Can you tell me why ...
Thank you , it worked.
Can you tell me why
set pagesize 0 need to be set here?
22,631
Posted By confused_info
It is oracle DB.
It is oracle DB.
22,631
Posted By confused_info
How to print the output of a select query using shell script?
HI,

I want to connect to database and fetch the count from a table.
The sql query is as below :

select count(*) from table_test where test_column='read';

How can I print the output of this...
4,051
Posted By confused_info
HI, Yes you were correct. I was calling my...
HI,

Yes you were correct. I was calling my ksh file through a wrapper class which was actually logging sftp commands.
So now I have decided to log these commands into another file using the...
4,051
Posted By confused_info
HI, I am explicitly logging the data which I...
HI,

I am explicitly logging the data which I require in the file using below method :

write_log() { echo `date +"%d %h, %Y %H:%M:%S"` " : " $* >> ${LOG_FILE} }
So i require only those...
4,051
Posted By confused_info
Hi Ravinder, I tried it out, but it delete...
Hi Ravinder,

I tried it out, but it delete only the rows having sftp word, but i need to delete all sftp loggings.

Here in my log the line stating "File "/test/*.cnm" not found." ,should also...
4,051
Posted By confused_info
Am using the below code: sftp...
Am using the below code:

sftp $USER@$HOST<<EOF 2>&1 cd $DIR
lcd $DIR/files
mget *$FILEEXT1 rm *$FILEEXT1 quit EOF
4,051
Posted By confused_info
[Solved] Do not want to print sftp commands in log
Hi,

While running my ksh file, I require the logs to be written to another file. For this I use the below code:
write_log()
{
echo `date +"%d %h, %Y %H:%M:%S"` " : " $* >> ${LOG_FILE}
}

...
5,178
Posted By confused_info
In sftp commands i found '! command ' that can be...
In sftp commands i found '! command ' that can be used to run shell scripts. Can i use this command and execute if condition using sftp, if so how?

Thanks fpmurphy for the reply.
5,178
Posted By confused_info
Need to check a condition using SFTP command
HI,

I connected to a remote FTP server using sftp command.
Need to check if any files are present inside a folder in server directory and then remove if present.

The code should look like...
Showing results 1 to 12 of 12

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