Sponsored Content
Full Discussion: Check the Files existence
Top Forums Shell Programming and Scripting Check the Files existence Post 302842973 by cnrj on Sunday 11th of August 2013 12:47:59 PM
Old 08-11-2013
Thanks

But i don't want to store list in variable i just need to store count value into Variable. still getting the same error.

Any other way to get this done?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

check for FILES existence

hi, I have a list of filenames and I want to verify if they all exist. I know "if filename" would do the trick but how do I go about a list of files? thanks (3 Replies)
Discussion started by: mpang_
3 Replies

2. AIX

check for file existence

Hello I am having a requirement like if there is no file in the directory then i need a message to pop on after the execution of the script. My script basically does for File in `ls -t $DIRECTORY | tail -1`; if there is no file the DIRECTORY then the script is simply exiting with out... (2 Replies)
Discussion started by: dsdev_123
2 Replies

3. AIX

Check for File Existence

I have requirement where i need to search for files which start with SALESORDER and PURCHASEORDER. i need to process the files with SALESORDER first and then PURCHASEORDER. If SALESORDER files are not there i dont want to process PURCHASEORDER and i want to come out of script. I have written a code... (4 Replies)
Discussion started by: dsdev_123
4 Replies

4. Shell Programming and Scripting

How to check for file existence?

i want to check if the file is in the directory or not, and also it should be handle error conditions, like missing files and report the error and exit. i did something like this: file ="hello" if !test -e "${file}" then echo "No such files exist!" exit 1 else do something....... fi ... (1 Reply)
Discussion started by: mingming88
1 Replies

5. Shell Programming and Scripting

Check existence of a number of files and call other scripts

Hi, I am new to unix scripting and am jus getting to learn about it.. I need to know on how to check for the existence of a number of files in a path..i.e the files are ftp'ed from several other servers, should check if all the files have arrived, if not wait till they arrive..can i use a flag... (5 Replies)
Discussion started by: yohasini
5 Replies

6. UNIX for Dummies Questions & Answers

To check for existence of a file

I need to check for the existence of a file *.log in a specific directory using a perl script. Presently am not in that particular directory. So i am using chdir ("/path/to/my/file) And then i am using the -e in an if statement to check if it exists. if (-e $File) {......} $File contains the... (1 Reply)
Discussion started by: manutd
1 Replies

7. Shell Programming and Scripting

check existence of files in a folder

Hi I am having a problem to verify existence of files. I need to know whether or not files in a folder that begins with a name. For example all files that start with The_File_ *. I was doing it this way, but gives me error. if text -f /work/The_File_* then ... else .. fi (5 Replies)
Discussion started by: Rodrih92
5 Replies

8. Shell Programming and Scripting

Check for the existence and add them from 2 different files

Hi, I have two files file1: ALEX DANY GARY TOM MARY HARRIS file2: ALEX 3 ALEX 5 ALEX 0 ALEX 1 ALEX 0 DANY 2 (2 Replies)
Discussion started by: Diya123
2 Replies

9. Shell Programming and Scripting

File existence check

hi i wanted to check if the file exist or not(multiple files) DIRE=/home/V478 if ; then echo "file present" else echo "file not present" fi But i am getting the error as : [: unexpected operator/operand (3 Replies)
Discussion started by: ATWC
3 Replies

10. Shell Programming and Scripting

Script to check the files existence inside a directory.

Hello Folks, On Below Script, I want to apply condition. Condition that it check the directory for files if not found keep checking. Once directory have files and founded do the calculation and finish the code. Script to check the files existence inside a directory, If not then keep... (16 Replies)
Discussion started by: sadique.manzar
16 Replies
semanage_iface(3)					   Libsemanage API documentation					 semanage_iface(3)

NAME
semanage_iface - SELinux Network Interfaces Management API SYNOPSIS
#include <semanage/iface_record.h> #include <semanage/interfaces_policy.h> #include <semanage/interfaces_local.h> This object contains properties associated with a network interface. For details on a specific function, see its manual page. Record API Overview semanage_iface_create(3)- create an interface semanage_iface_free(3)- release resources for this interface semanage_iface_key_create(3)- create a key, which can be used to identify an interface semanage_iface_key_free(3)- release resources for this interface key semanage_iface_key_extract(3)- create a key matching this interface semanage_iface_clone(3)- create an identical interface (deep-copy clone) semanage_iface_compare(3)- compare this interface to the provided key semanage_iface_compare2(3)- compare this interface to another Properties API Overview semanage_iface_get_name(3)- return the name of this interface semanage_iface_set_name(3)- set the name of this interface semanage_iface_get_ifcon(3)- return the SELinux context associated with this interface semanage_iface_set_ifcon(3)- set the SELinux context associated with this interface semanage_iface_get_msgcon(3)- return the SELinux context associated with packets sent over this interface semanage_iface_set_msgcon(3)- set the SELinux context associated with packets sent over this interface Record Store API Overview semanage_iface_modify_local(3)- add or update an interface in the local store semanage_iface_del_local(3)- delete an interface from the local store semanage_iface_exists(3)- check if an interface is defined in the persistent policy semanage_iface_exists_local(3)- check if an interface is defined in the local store semanage_iface_query(3)- query an interface in the persistent policy semanage_iface_query_local(3)- query an interface in the local store semanage_iface_count(3)- count the number of interfaces defined in the persistent policy semanage_iface_count_local(3)- count the number of interfaces defined in the local store semanage_iface_iterate(3)- execute a callback for each interface in the persistent policy semanage_iface_iterate_local(3)- execute a callback for each interface in the local store semanage_iface_list(3)- return an array containing all interfaces in the persistent policy semanage_iface_list_local(3)- return an array containing all interfaces in the local store ivg2@cornell.edu 16 March 2006 semanage_iface(3)
All times are GMT -4. The time now is 03:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy