10-17-2006
Is it because the value of the variable "files" is getting overwritten in each recursive call? Do I have to make the variable name dynamic instead of "files" ?
Regards,
T.
10 More Discussions You Might Find Interesting
1. AIX
Hi,
I am elango. I am working with UNIX AIX version 5.
I am facing tow problem whenever I am trying to run a script.
1. The moment I run the script 3 more jobs are getting started automatically.
I used PS -ef command to check the running Jobs, I found totally 4 jobs
are running for... (4 Replies)
Discussion started by: Elango
4 Replies
2. UNIX for Advanced & Expert Users
I am getting an Error Message as
=============================
starting Sortcl Merging And Aggregation
time: command terminated abnormally.
=============================
, when running a sortcl command.sortcl is a command for sorting large data,using cosort application installed in... (0 Replies)
Discussion started by: tkbharani
0 Replies
3. UNIX for Dummies Questions & Answers
Hi all!
I'm using CentOS 5.2 with KDE.
Is it possible to get a processname/cmd of a terminated process (= PID not present with PS-command) ?
Are the processnames/scriptnames logged somewhere? (I did not find them in /var/log/messages) (5 Replies)
Discussion started by: JohnMurdoch
5 Replies
4. Shell Programming and Scripting
################################################################
Copy this script to your path from where you want to search for all the files and directories in subdirectories recursively.
#################################################################
code starts here... (2 Replies)
Discussion started by: Ramit_Gupta
2 Replies
5. Shell Programming and Scripting
This is shell script I have made to lists out directory contents and filenames for any given directory (without using ls command). There is some problem in dirfunc function call which I have marked 1 is not working. Can anybody suggest what is the problem there and how should I correct it.
... (2 Replies)
Discussion started by: netresearch
2 Replies
6. Infrastructure Monitoring
Hello,
I have a problem with package and name space.
require "/Mehran/DSGateEngineLib/general.pl";
use strict;
sub System_Status_Main_Service_Status_Intrusion_Prevention
{
my %idpstatus;
my @result;
&General_ReadHash("/var/dsg/idp/settings",\%idpstatus);
#print... (4 Replies)
Discussion started by: Zaxon
4 Replies
7. Shell Programming and Scripting
Hi,
What am i missing on line 16, when I run this I get
Search pattern not terminated at count-scr.pl line 16
#!perl open(my $log, ">log-subnet.txt") or die "Could not open log: $!\n"; ##### Step 1, read subnetsopen(my $in, "<names.txt") or die "Could not open names.txt: $!\n";while(<$in>)... (3 Replies)
Discussion started by: richsark
3 Replies
8. HP-UX
In our HP-UX B.11.11 U 9000/800 PA-RISC 64bits server, the oracle session is not terminated using JDBC after closing the session, we close the java.sql.Statement java.sql.Result and java.sql.Connection on app.
In others servers (GNU/Linux debian), the sessions are ending without problems, using... (1 Reply)
Discussion started by: miguecg
1 Replies
9. Solaris
After a memory upgrade all network interfaces are misconfigued. How do i resolve this issue. Below are some out puts.thanks.
ifconfig: plumb: SIOCLIFADDIF: eg000g0:2: no such interface
# ifconfig eg1000g0:2 plumb
ifconfig: plumb: SIOCLIFADDIF: eg1000g0:2: no such interface
# ifconfig... (2 Replies)
Discussion started by: andersonedouard
2 Replies
10. Emergency UNIX and Linux Support
Hi,
I am running a perl script to automate a process and I keep running into a error can't find the "value"
Can't call method "value" on an undefined value at process_file.pl line 44.
file is CVS
cell is ifdfdxrfmp.ksh
Here is the script I have also attached it as well:
... (2 Replies)
Discussion started by: vpundit
2 Replies
LEARN ABOUT DEBIAN
aoe-mkdevs
aoe-mkdevs(8) System Manager's Manual aoe-mkdevs(8)
NAME
aoe-mkdevs - create special device files for aoe driver
SYNOPSIS
aoe-mkdevs {device-dir}
env n_partitions=1 aoe-mkdevs {device-dir}
DESCRIPTION
The aoe-mkdevs command is deprecated in favor of udev. Systems with udev do not need to use the aoe-mkdevs or aoe-mkself commands, because
udev will create device nodes as needed.
Systems without udev use aoe-mkdevs to create the character special files necessary to control the aoe driver. The aoe-mkdevs command uses
aoe-mkshelf to also create block special files.
The aoe drivers after version 49 support dynamic minor device numbers so that a greater number of devices can be supported. The aoe-mkdevs
command is incompatible with dynamic device numbers. If your system lacks udev, and you are using an aoe driver version 50 or above, use
the aoe_dyndevs=0 module option to force the aoe driver to use static device numbers.
If you are not using dynamic device numbers, and you built your aoe driver to support only one partition per device (whole-disk parti-
tions), then the device files must match, and you should use the n_partitions environment variable described below.
Arguments
device-dir
This should be the name of the directory where the special device files will be created.
ENVIRONMENT VARIABLES
If the n_partitions variable is set in the environment, it will override the default number of partitions per aoe disk, namely 16.
EXAMPLE
In this example, the root user on a host named nai creates special files for using the aoe disks in shelf 7. After remembering that the
driver doesn't have partition support, this sysadmin gets rid of the mismatching device nodes and calls aoe-mkdevs again with n_partitions
set to 1.
nai:~# rm -rf /dev/etherd
nai:~# aoe-mkdevs /dev/etherd
nai:~# ls /dev/etherd | wc -l
1603
nai:~# rm -rf /dev/etherd
nai:~# n_partitions=1 aoe-mkdevs /dev/etherd
nai:~# ls /dev/etherd | wc -l
103
SEE ALSO
aoe-discover(8), aoe-interfaces(8), aoe-mkshelf(8), aoe-stat(8), aoetools(8), udev(7).
AUTHOR
Ed L. Cashin (ecashin@coraid.com)
aoe-mkdevs(8)