Need help to check the copy % from following output
I have a scenario where I need to wait for the copy to be 100% in the following output
There can be multiple devices in the copy session so I need to wait till everything becomes 100%, also we can look for the protected tracks t0 become 0
Moderator's Comments:
Please enclose output in code tags
Last edited by jim mcnamara; 03-22-2012 at 10:54 AM..
Hello,
I have a nohup.out file that, when executed, outputs a spreadsheet file
with four-to-seven columns of number. I want to copy this output (in its entirety), so that I could then paste it on excel@ , or Notepad@.
Please help, thanks. (3 Replies)
Hi,
I would like to perform bash which would check the file A.txt to be size 0 or not. If the size is 0, I would copy file B.txt to replace A.txt.
Please help.
Thanks.
-Jason (6 Replies)
Hi everyone. I am trying to write a bash script that will copy files from one directory to another but I need to be able to check the directory that I'm copying the files to and see if the file already exists. If it does I need to add a number at the end of the copied file. Thanks for your help. (3 Replies)
Hi all,
I need a script in ksh:
1: Copy files from directory (A) to directory (B)
2: Check if files that will be copied in directory (A) have never been yet copied to (B)
3: Never copy the last created file of directory (A)
This script will run on crontab.
Thanks in advance for your... (1 Reply)
my user copy large files, and it's take 10min for file to be copied to the server (/tmp/user/ files/), if in the meantime start my scheduled script, then it will copy a part of some file to server1
my idea is to check the file size twice in a short period (1-2 seconds) of time, then compare, if... (5 Replies)
Hi all,
I have a script that is monitoring a hot folder. This script works fine with one exception when the script is executed while a file is being copied to the hot folder.
What is the easiest method to check if the copy file is completed? I'd like to get the solution in bash :) (8 Replies)
Hi,
I am writing some shell script to check the file owner permission whether the write bit is turn on. If it is turn on it will copy the file to the destination else it will just prompt user to change the file and skipping it.
However, I am starting getting loss here as I have couple of... (2 Replies)
All,
I have to write a script to do the following requirement.
There is a file called BUSINESS_DATE.TXT.
This file get updated once the oracle partition created. In Oracle, Partition will be created every day. There is a seperate script scheduled to take care ORACLE partition creation.
The... (3 Replies)
Hi All,
I am a beginner in this and trying to write a shell script in linux which will :
1. Ask for a file name and check if its exists.
2. If file exists only then it will ask for the new target folder, after entering target folder name it will check if it exists.
3. If target folder... (3 Replies)
Hi
I have a text file (INPUT.TXT) of three columns assuming they are separated by tab. The format is given as:
Column1 Column2 Column3
aaa NO aaa
bbb YES asdf
ccc YES yyasdf
ddd NO ddd
eee ... (3 Replies)
Discussion started by: my_Perl
3 Replies
LEARN ABOUT CENTOS
libssh2_session_block_directions
libssh2_session_block_directions(3) libssh2 manual libssh2_session_block_directions(3)NAME
libssh2_session_block_directions - get directions to wait for
SYNOPSIS
#include <libssh2.h>
int libssh2_session_block_directions(LIBSSH2_SESSION *session);
DESCRIPTION
session - Session instance as returned by libssh2_session_init_ex(3)
When any of libssh2 functions return LIBSSH2_ERROR_EAGAIN an application should wait for the socket to have data available for reading or
writing. Depending on the return value of libssh2_session_block_directions(3) an application should wait for read, write or both.
RETURN VALUE
Returns the set of directions as a binary mask. Can be a combination of:
LIBSSH2_SESSION_BLOCK_INBOUND: Inbound direction blocked.
LIBSSH2_SESSION_BLOCK_OUTBOUND: Outbound direction blocked.
Application should wait for data to be available for socket prior to calling a libssh2 function again. If LIBSSH2_SESSION_BLOCK_INBOUND is
set select should contain the session socket in readfds set. Correspondingly in case of LIBSSH2_SESSION_BLOCK_OUTBOUND writefds set should
contain the socket.
AVAILABILITY
Added in 1.0
libssh2 1.0 1 Oct 2008 libssh2_session_block_directions(3)