@ctsgnb - Thanks the above script of yours is working fine but there is one issue in it....
It reads all the file properly like it is reading 1.gjsdlfjds, 2.fsdjklmghsj, 3.fjdksfdsq, 4.xoop.txt, 5.DE.5.TXT but is the 6th file is not there and the 7th file is available it thros and error saying ls: 6.*: No such file or directory and the loop get over and it doesnt read the 7th file..
Also i have 15th file as well it doesnt go there as well...
Sequence of files are
Hi All,
I am a newbie to unix and scripting. I need to do the following job:
1. Create a batch file in windows that will call a script in a remote unix box.
2. The script now ftp files from the Remote windows machine and get them back to the local windows.
Actually, I have written the script... (3 Replies)
I am searching for a automation testing tool which I can use for most of the UNIX platforms (AIX, Linux, HP UX, Solaris). The installation process of the application in all platforms is almost same. Are you aware of any automation tool (like WinRunner for Windows) to solve my problem? (5 Replies)
Hi, i'm a newbie with unix and shell scripting. I'm just trying to do a script to simply automate a unix task. This are the steps on what i want to just run on a simple shell script
1. go to a specific path (cd /folder1/folder2/)
2. edit and input a number on a file (file_id) then save exit... (6 Replies)
hi
i need shell script in ksh for the automation process in informtica.
The automation process is like this .
i have a folder in unix . when this folder gets updated (like if a file or files is/are added to the folder) an event in informatica is triggered and after the process is done in... (2 Replies)
Hi Sir,
I need unix code which will read data present in .xls file and should send an automated mails .when i place the .XLS file in a specific folder and run ***.sh from unix box
Attached Excel file contains
Subject , To , CC , Body (Paragraph 1) , Body (Paragraph 2) , Signature
When i... (2 Replies)
Hello Folks - Need help really ASAP.
Iam trying to run this Shell command to get all the lists of partitions and disks from across all the servers.
#!/bin/ksh
_servers=""
_out="/tmp/output.$$"
_ssh=/usr/bin/ssh
>$_out
for s in $_servers
do
$_ssh $s fdisk -l >> $_out
done
... (8 Replies)
Discussion started by: bkilaru
8 Replies
8. Post Here to Contact Site Administrators and Moderators
I am using netteza server and i have a list of table names. I need to fetch all the data from these tables and need to create seperate zip files and store in a folder in the server. How can we automate this process. (1 Reply)
Hi folks,
has any one attempted using bots for performing tasks in unix?please share if you faced any challenges
thanks (1 Reply)
Discussion started by: tommy812
1 Replies
LEARN ABOUT SUNOS
dat_get_handle_type
dat_get_handle_type(3DAT) Direct Access Transport Library Functions dat_get_handle_type(3DAT)NAME
dat_get_handle_type - get handle type
SYNOPSIS
cc [ flag... ] file... -ldat [ library... ]
#include <dat/udat.h>
DAT_RETURN
dat_get_handle_typet (
IN DAT_HANDLE dat_handle,
OUT DAT_HANDLE_TYPE *handle_type
)
PARAMETERS
dat_handle Handle for a DAT Object.
handle_type Type of the handle of dat_handle.
DESCRIPTION
The dat_get_handle_type() function allows the Consumer to discover the type of a DAT Object using its handle.
The dat_handle can be one of the following handle types: DAT_IA_HANDLE, DAT_EP_HANDLE, DAT_EVD_HANDLE, DAT_CR_HANDLE, DAT_RSP_HANDLE,
DAT_PSP_HANDLE, DAT_PZ_HANDLE, DAT_LMR_HANDLE, or DAT_RMR_HANDLE.
The handle_type is one of the following handle types: DAT_HANDLE_TYPE_IA, DAT_HANDLE_TYPE_EP, DAT_HANDLE_TYPE_EVD, DAT_HANDLE_TYPE_CR,
DAT_HANDLE_TYPE_PSP, DAT_HANDLE_TYPE_RSP, DAT_HANDLE_TYPE_PZ, DAT_HANDLE_TYPE_LMR, DAT_HANDLE_TYPE_RMR, or DAT_HANDLE_TYPE_CNO.
RETURN VALUES
DAT_SUCCESS The operation was successful.
DAT_INVALID_HANDLE The dat_handle parameter is invalid.
USAGE
Consumers can use this operation to determine the type of Object being returned. This is needed for calling an appropriate query or any
other operation on the Object handle.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard: uDAPL, 1.1, 1.2 |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO libdat(3LIB), attributes(5)SunOS 5.10 16 Jul 2004 dat_get_handle_type(3DAT)