Sponsored Content
Top Forums Shell Programming and Scripting Shell scripting question (Fedora 16) Post 302620037 by Fuyudo on Friday 6th of April 2012 09:07:44 PM
Old 04-06-2012
Awesome, the only problem I noticed now is that the commands I want to use dont seem to work as they arnt bash commands, haha.

Im trying to run FSL commands in a script is anyone knows about FSL. Its a program for brain imaging.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Scripting Question

To anyone who can help greetings, I am a beginner at Unix shell scripting and am taking a class. The assignment question is as follows: use a command-line tool named "itstat" which will display the resolution of an image file and some other lines of information. It accepts a list of image... (1 Reply)
Discussion started by: tech2040
1 Replies

2. Shell Programming and Scripting

Shell Scripting Question

To anyone who can help greetings, I am a beginner at Unix shell scripting. I need to know how to use the command line tool "itstat". I understand it's application, however I cannot find any additional information. Any assistance will be greatly appreciated. (3 Replies)
Discussion started by: tech2040
3 Replies

3. Shell Programming and Scripting

basic shell scripting question

If I did indeed grep something out of it, why woudln't $result show nothing? When I do $? , it does show success... What is the proper syntax so that $result shows actual thing it's grepping out? result=`(ssh $host tail -1 /something/somethingelse) | egrep -i "value" >dev/null` #echo... (3 Replies)
Discussion started by: convenientstore
3 Replies

4. UNIX for Dummies Questions & Answers

Shell Scripting Question

Hi, I am assaigning the output to the variable outp and when i try to loop thru the variable i see the original content $OUTPUT also in the array outp. I dont want to have the original content in the array outp. Please reply. outp=$(echo $OUTPUT | awk '{FS = "|"}{ for(i=0;i<NF;i++)... (8 Replies)
Discussion started by: vijaykrc
8 Replies

5. UNIX for Dummies Questions & Answers

rsh question in shell scripting

Hi all and thanks for Your attention. I need to run this set of commands on a remote machine... rsh -l barut esfe1 sudo su - tode tode deng.sh exit (from rsh) The problem is that when i rsh (or rlogin) i'm required a password. How do I input the password (from the script not mannyally).... (4 Replies)
Discussion started by: Ruzeil
4 Replies

6. UNIX for Dummies Questions & Answers

shell scripting question

Testing for the presence/absence of a pattern in a file, using /bin/sh: while read a; do b="${a##*pattern*}"; ; done < file This returns 0 if there's a match. That signal ($?) can then be used outside the loop. However this method reads through the whole file, even if the match... (2 Replies)
Discussion started by: uiop44
2 Replies

7. Shell Programming and Scripting

Question in shell scripting

Hello, I have a scenario for which I am trying to write a shell script and I have a question regarding the same. Here's the situation: I am trying to copy a directory which consists of a few sub-directories and .c and .dat extension files say n number of times so that the copied file have... (3 Replies)
Discussion started by: corntown118
3 Replies

8. Shell Programming and Scripting

Shell Scripting Question

Hi guys, I am wanting to create a script that will logon to HackThisSite.org and complete Programming Mission 11. You can find a link to this mission here for your reference: www hackthissite org/missions/prog/11/ The following is what I have so far: #!/bin/bash USER="myUsername"... (0 Replies)
Discussion started by: spooke
0 Replies

9. UNIX for Dummies Questions & Answers

Question about shell scripting in UNIX

Unix script coding help? i am trying to write a code that will display following menu to user: (A) Add (B) Subtract (C) Multiply (D) Divide (E) Modulus (F) Exponentiation (G) Exit Then ask user for choice (A-F). After taking users choice ask user for two numbers and perform... (0 Replies)
Discussion started by: renegade755
0 Replies

10. Shell Programming and Scripting

Question regarding for shell scripting.

I tried to run a command which simply generates SSH key with out prompting password. After several trails , got the below command to run the script : ssh-keygen -t rsa -N "" -f id_rsa -N "" tells it to use an empty passphrase (the same as two of the enters in an interactive script) -f... (0 Replies)
Discussion started by: ulaxmi
0 Replies
NSDB-DELETE-FSL(8)					      System Manager's Manual						NSDB-DELETE-FSL(8)

NAME
nsdb-delete-fsl - delete a fileset location (FSL) record from an NSDB SYNOPSIS
nsdb-delete-fsl [-?d] [-D binddn] [-e nce] [-l nsdbname] [-r nsdbport] fsl-uuid INTRODUCTION
RFC 5716 introduces the Federated File System (FedFS, for short). FedFS is an extensible standardized mechanism by which system adminis- trators construct a coherent namespace across multiple file servers using file system referrals. For further details, see fedfs(7). The bulk of FedFS junction information in a FedFS domain is stored on one or more LDAP servers. These servers are known as namespace data- bases, or NSDBs, for short. FedFS-enabled file servers and clients access the information stored on NSDBs via standard LDAP queries. FedFS-enabled file servers use these queries to resolve FedFS junctions. FedFS administrators use them to manage information about file sets contained in a FedFS domain name space. DESCRIPTION
The nsdb-delete-fsl(8) command is part of a collection of low-level single-use programs that is intended for testing the NSDB protocol or for use in scripts. This command deletes a FedFS fileset location (FSL) record from an NSDB. A fileset location, or FSL, uniquely identifies the location of one replica of a fileset. An FSL record contains two UUIDs and other information, depending on the subtype of the FSL. The meaning of these items is described in more detail in fedfs(7). FSLs are stored in records on an NSDB. These records are stored as children of FSN records. Replicas of these records can exist on more than one LDAP server. The nsdb-delete-fsl(8) command removes an FSL record from the named NSDB. It does not remove parent FSN records. To remove FSN records, use the nsdb-delete-fsn(8) command. It does not remove a replica of a fileset. To remove fileset replicas, use appropriate file server administrative commands. This command has two positional parameters. The first parameter specifies the target FSN UUID. If a record for this FSN does not already exist, the nsdb-delete-fsn(8) command fails. The second parameter specifies the UUID of the FSL record to remove. If a record for this FSL does not exist, the nsdb-delete-fsn(8) command fails. OPTIONS
-d, --debug Enables debugging messages during operation. -?, --help Displays nsdb-delete-fsl(8) version information and a usage message on stderr. -D, --binddn=bind-distinguished-name Specifies a distinguished name of an entity used to bind to the LDAP server where the NSDB resides. If the --binddn option is not specified, the value of the FEDFS_NSDB_ADMIN environment variable is consulted. If this variable is not set, the NSDB connection parameter database is searched for this DN. If none of these is specified, or if this entity does not have permission to modify this area of the server's DIT, the nsdb-delete-fsl(8) command fails. -e, --nce=NSDB-container-entry-distinguished-name Specifies the distinguished name of the NSDB Container Entry under which this FSL is to be created. If the --nce option is not specified, the value of the FEDFS_NSDB_NCE environment variable is consulted. If this variable is not set, then the NSDB connection parameter database is searched for this DN. If none of these is specified, the nsdb-delete-fsl(8) command fails. -l, --nsdbname=NSDB-hostname Specifies the hostname of the NSDB where the new FSL record should reside. If the --nsdbname option is not specified, the value of the FEDFS_NSDB_HOST environment variable is consulted. If the variable is not set and the --nsdbname option is not specified, the nsdb-delete-fsl(8) command fails. -r, --nsdbport=NSDB-port Specifies the IP port of the NSDB where the new FSL record should reside. If the --nsdbport option is not specified, the value of the FEDFS_NSDB_PORT environment variable is consulted. The default value if the variable is not set is 389. EXIT CODES
The NSDB returns a value that reflects the success of the requested operation. FEDFS_OK The LDAP modify request succeeded. FEDFS_ERR_ACCESS The bound entity does not have permission to perform the requested operation. FEDFS_ERR_INVAL One of the arguments was not valid. FEDFS_ERR_SVRFAULT An unanticipated non-protocol error occurred. FEDFS_ERR_NSDB_ROUTE The nsdb-delete-fsl(8) command was unable to find a route to the specified NSDB. FEDFS_ERR_NSDB_DOWN The nsdb-delete-fsl(8) command determined that the specified NSDB was down. FEDFS_ERR_NSDB_CONN The nsdb-delete-fsl(8) command was unable to establish a connection with the specified NSDB. FEDFS_ERR_NSDB_AUTH The nsdb-delete-fsl(8) command was unable to authenticate and establish a secure connection with the specified NSDB. FEDFS_ERR_NSDB_LDAP A non-specific LDAP error occurred on the connection between the nsdb-delete-fsl(8) command and specified NSDB. FEDFS_ERR_NSDB_LDAP_VAL An LDAP error occurred on the connection between the nsdb-delete-fsl(8) command and specified NSDB. The specific error may be dis- played on the command line. FEDFS_ERR_NSDB_NONCE The nsdb-delete-fsl(8) command was unable to locate the NCE on the specified NSDB. FEDFS_ERR_NSDB_NOFSN The nsdb-delete-fsl(8) command was unable to locate the specified FSN on the specified NSDB. FEDFS_ERR_NSDB_NOFSL The nsdb-delete-fsl(8) command was unable to locate the specified FSL for the specified FSN on the specified NSDB. FEDFS_ERR_NSDB_RESPONSE The nsdb-delete-fsl(8) command received a malformed response from the specified NSDB. FEDFS_ERR_NSDB_FAULT An unanticipated error related to the specified NSDB occurred. FEDFS_ERR_NSDB_PARAMS The local NSDB connection parameter database does not have any connection parameters on record for the specified NSDB. FEDFS_ERR_NSDB_LDAP_REFERRAL The nsdb-delete-fsl(8) command received an LDAP referral that it was unable to follow. FEDFS_ERR_NSDB_LDAP_REFERRAL_VAL The nsdb-delete-fsl(8) command received an LDAP referral that it was unable to follow. A specific error may be displayed on the command line. FEDFS_ERR_NSDB_LDAP_REFERRAL_NOTFOLLOWED The nsdb-delete-fsl(8) command received an LDAP referral that it chose not to follow, either because the local implementation does not support following LDAP referrals or LDAP referral following is disabled. FEDFS_ERR_NSDB_PARAMS_LDAP_REFERRAL The nsdb-delete-fsl(8) command received an LDAP referral that it chose not to follow because the local NSDB connection parameter database had no connection parameters for the NSDB targeted by the LDAP referral. EXAMPLES
Suppose you are the FedFS administrator of the example.net FedFS domain and that you have an FSN that looks like: FSN UUID: 8e246ddc-7b46-11e0-8252-000c297fd679 NSDB: nsdb.example.net:389 Further suppose the NSDB nsdb.example.net:389 has an NSDB Container Entry whose distinguished name is o=fedfs. The replica of this fileset that exists at fileserver.example.net:/path has just been removed, and it's FSL UUID is 323c5068-7c11-11e0-8d38-000c297fd679. To delete the corresponding FSL record, you might use: $ nsdb-delete-fsl -D cn=Manager -e o=fedfs -l nsdb.example.net 8e246ddc-7b46-11e0-8252-000c297fd679 323c5068-7c11-11e0-8d38-000c297fd679 Enter NSDB password: Successfully deleted FSL record fedfsFslUuid=323c5068-7c11-11e0-8d38-000c297fd679, fedfsFsnUuid=8e246ddc-7b46-11e0-8252-000c297fd679,o=fedfs The FSL record for the specified replica is removed, leaving possibly other FSL records for this fileset, and leaving the parent FSN record intact. SECURITY
Permission to modify the LDAP's DIT is required to delete an FSL record. The nsdb-delete-fsl(8) command must bind as an entity permitted to modify the DIT to perform this operation. The nsdb-delete-fsl(8) command asks for a password on stdin. Standard password blanking techniques are used to obscure the password on the user's terminal. The target LDAP server must be registered in the local NSDB connection parameter database. The connection security mode listed in the NSDB connection parameter database for the target LDAP server is used during this operation. See nsdbparams(8) for details on how to register an NSDB in the local NSDB connection parameter database. SEE ALSO
fedfs(7), nsdb-delete-fsn(8), nsdb-list(8), nsdbparams(8) RFC 5716 for FedFS requirements and overview RFC 4510 for an introduction to LDAP COLOPHON
This page is part of the fedfs-utils package. A description of the project and information about reporting bugs can be found at http://wiki.linux-nfs.org/wiki/index.php/FedFsUtilsProject. AUTHOR
Chuck Lever <chuck.lever@oracle.com> 3 February 2014 NSDB-DELETE-FSL(8)
All times are GMT -4. The time now is 01:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy