02-23-2011
Thanks ctsgnb,
That's make you now my new best friend
I will try this. I believe I will have to send this command line on both of directories to create a temporary file and then use a loop to read it line by line to send my specific command.
Thanks again for your help.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I having problem when I call this cleanupmenu function within a script. It continuously loops and goes to selection * That wasn't a valid selection. I have to kill it everytime to stop it. What am I doing wrong. I use this function menu in several other scripts and I don't have this problem at... (2 Replies)
Discussion started by: darthur
2 Replies
2. Shell Programming and Scripting
Dear all
How to write the shell script for the following statement:
(C programming)
for (i=0;i<30;i++) {
if i=1
continue *skip this number
(To do function here....)
...
}
similar statement in while loop....
I wrote the script in sh... (3 Replies)
Discussion started by: trynew
3 Replies
3. Programming
Does anyone know what __read_nocancel does and why it would go into an infinite loop?
What I have gathered in my searches is that it pertains to server code. Yet, I'm not running this application in server mode.
NOTE: There are server functions in the shared object, but the specific code... (3 Replies)
Discussion started by: marcus121
3 Replies
4. Shell Programming and Scripting
Hi all,
I am trying to call a function in for loop in the below format
#!/bin/bash
abc()
{
commands
}
for (( i=0; i<=10; i++ ))
do
abc
done
The error i am getting when trying to execute:
syntax error: unexpected end of file
canany one help me where i am going wrong?? (5 Replies)
Discussion started by: gsr_kashyap
5 Replies
5. UNIX for Dummies Questions & Answers
my ksh script is not working...
i wanna remove lines in file2.txt from file1.txt
# cat file1.txt
this is line one
this is line two
this is line three
this is line four
this is line five
# cat file2.txt
this is line two
this is line three
# cat my_script.ksh
#!/bin/ksh
i=1
y=1... (8 Replies)
Discussion started by: curtis911
8 Replies
6. Shell Programming and Scripting
check_deplver ()
{
dir=/abc/def/ghi
if ssh -o StrictHostKeychecking=no $1 "" 2> /dev/null
then
echo " output is "
ssh -o StrictHostKeychecking=no $1 "ls -lrt $dir | grep -i abc" 2> /dev/null
else
echo " directory not presnt"
fi
}
This is not working.
But... (7 Replies)
Discussion started by: NarayanaPrakash
7 Replies
7. Shell Programming and Scripting
Hi ALL,
I want to replace string occurrence in my file "Config" using a external file named "Mapping" using awk.
$cat Config
! Configuration file for RAVI
! Configuration file for RACHANA
! Configuration file for BALLU
$cat Mapping
ravi:ram
rachana:shyam
ballu:hameed
The... (5 Replies)
Discussion started by: useless79
5 Replies
8. UNIX for Advanced & Expert Users
Hi,
I was working on implementing error handling in my bash scripts, and decided to use trap to send myself an email incase of any errors. But it seems that somethings has gone wrong, and I am continuously getting same emails for an old error repeatedly (even though I have stopped/killed all... (1 Reply)
Discussion started by: cool.aquarian
1 Replies
9. Shell Programming and Scripting
Hi All,
I have created one function for KSH and was running well with one parameter input since I just had to use $1 to get the parameter.
Now I want to do loop for each parameter(actually filenames) . I have try to use do loop, but $i does not resolve to parameter instead it resolves to 1,... (5 Replies)
Discussion started by: mysocks
5 Replies
10. Shell Programming and Scripting
Hello Experts,
I have created one user confirmation process that will ask for user input. I have created one func for it. The issue is if i call it as normal then it works fine but if i am calling it in another script(in while loop) . It is going in infinite loop and not asking for user input. ... (8 Replies)
Discussion started by: looney
8 Replies
LEARN ABOUT HPUX
fs_wrapper
fs_wrapper(5) File Formats Manual fs_wrapper(5)
NAME
fs_wrapper - configuration and binary files used by file system administration commands
SYNOPSIS
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
FStype] ...
DESCRIPTION
The commands listed in the SYNOPSIS can operate on different types of file systems. Each command (except for reads file system specific
configuration files that control the command's behavior, and invokes a file system specific binary file to do the actual work. FStype is
the file system type as optionally specified on the command line. If FStype is not given, then the file system type is determined from by
matching an entry in this file with a device provided with the command (see individual commands for details of usage).
Administrators may also define a default file system type for the above commands via the file If this file exists, and contains the line:
(e.g., then the above commands will assume the FStype given in unless an FStype is provided on the command line or is in The default file
system specification is provided to maintain compatibility with pre-10.0 invocations of the commands.
See the FILES section for a list of the files used.
WARNINGS
The configuration files are supplied by HP or by other file system vendors. They are not meant to be edited by System Administrators.
Corruption or removal of these files may lead to strange behavior, including the inability to boot.
The format of the configuration file is subject to change.
The file system specific binary files are not normally executed directly. However, if the configuration files become unusable, direct exe-
cution of these binary files may be a useful step in repairing and running the system again. The binary files accept the same arguments as
the commands by which they are executed.
The command is a special case. This command currently does not read a configuration file, and does not execute a file system specific
binary file if FStype is or The binary that handles these FStypes also processes other FStypes and calls the file system specific command
if appropriate.
For historical reasons, the binary files also handle and so there are no separate binary files for the latter two file systems.
The commands (except will not work if they are renamed, because they are symbolically linked to a single executable
FILES
FStype is the file system type as optionally specified on the command line. command is the name of the command.
File system specific binary files for the
and commands. There may be additional file system specific binary files in this directory that are
not associated with
File system specific binary files for the remaining commands.
There may also be other file system specific binary files in this directory that are not associated
with
Configuration files for each file system type.
File in which the default file system type can be defined.
If this file does not exist, there is no default file system type.
Static information about the file systems
SEE ALSO
ff(1M), fsck(1M), fsdb(1M), mkfs(1M), mount(1M), ncheck(1M), newfs(1M), quot(1M), quotacheck(1M), volcopy(1M), fstab(4).
fs_wrapper(5)