Dear friends,
please tell me how to pass the external variable values to the nawk command.
length=`expr $len2 - $len1`
i need to pass $length to following nawk command as mentioned below.
nawk '{if((x=index($0,"W/X"))>0){id=substr($0,x, $length);print x;print id;}}' filename1
but I am... (1 Reply)
I'm finding the following command very tedious to type in all the time, so I created a one line bash script called mount.bash with the following contents:
mount -t cifs //mark/C\$ -o unc=//mark\\C$,ip=10.1.1.33,user=Administrator,password=$1 /mnt/mark
I don't like the fact that I have to put... (5 Replies)
Hi one & All ,
My Need is to Create 64 Partition and create File System in Linux.
I have the Script ...
for((a=0;a<=63;a++))
do
fdisk /dev/cciss/c0d$a
done
for((a=0;a<=63;a++))
do
mkfs.ext2 /dec/cciss/'c0d'$a'p1'
done
the moment I run the Script I get the Prompt ...
Command... (1 Reply)
only the arguments that are written to the file,
my script is (sh /u01app/wkf.sh"$start_no","$name","$Condition","$file_name") like that
when ever I run my script I need to write into a new file every time,
like wise I have upto10 files with different names.bec my $start_no and $name will... (1 Reply)
I know that we can call system command to execute shell script in awk.
but it does not return the result of the command executed , but only returns
the value of the command executoin status ( 1/0 --> failure / success).
Could anyone let me know how to solve this problem. (9 Replies)
Hi All,
Can anybody please help me with how can i call my java program from shell and also pass parameter along with it so that the program can interpret the value/int and update the database.
Thanks in advance
Neha (1 Reply)
I use csh a lot but I don't really write csh scripts. Now I have a need to implement a security check (written in perl; verify an user input security code) into a csh script. Here is the senario:
#csh
1. call the perl script
2. if the perl script returns 'true', pass on;
if the perl... (1 Reply)
Hello, I have two bash scripts like the following:
script 1:
#!/bin/bash
var=WORLD
bash path/to/second/script/script2.bash
script 2:
#!/bin/bash
echo "HELLO $var"
I expected the output to be "HELLO WORLD" but instead, I get "HELLO". I understand that when I envoke another bash... (2 Replies)
Hello.
A find command return a list of file.
For each fileReplace the content starting with the first "§" (of two) ending with last "ɸ" (of two), regardless of the content ( five lines )
by the following content (exactly) :
§2019_08_23§ #
# ... (8 Replies)
Discussion started by: jcdole
8 Replies
LEARN ABOUT DEBIAN
ql-hba-snapshot
ql-hba-snapshot(8) System Administration ql-hba-snapshot(8)NAME
ql-hba-snapshot - display specific information of the QLogic HBA.
SYNOPSIS
ql-hba-snapshot <Host number> [OPTIONS]
DESCRIPTION
FC HBA Snapshot Utility
This utility displays the details of the QLogic HBA attached to the system. It uses one of the two file systems for scanning: proc or
sysfs.
<Host number> | <-a/--all> [optional]
Provide the <HOST NUMBER> to display the detailed information of the HBA. With no option specified, general information of all
hosts will be displayed. Ex. # /usr/sbin/ql-hba-snapshot <Host Number> # /usr/sbin/ql-hba-snapshot --procfs <Host Number> (For
procfs)
-h, --help
Prints the help message. Ex. # /usr/sbin/ql-hba-snapshot --help
-hl, --hostlist
This option displays the list of QLogic hosts (HBAs) connected to this system. The <HOST NUMBER> can be obtained by using following
command Ex. # /usr/sbin/ql-hba-snapshot --hostlist
-p, --parameters
This option displays the command line parameters that can be passed to the QLogic HBA driver. Ex. # /usr/sbin/ql-hba-snapshot
--parameters <Host Number>
-s, --statistics
This option displays the statistical information for specified host. Stastics option is only supported in "sysfs" based scan. Ex.
# /usr/sbin/ql-hba-snapshot --statistics <Host number/--all>
-proc, --procfs
This options forces the the utility to scans information based on "procfs", instead of default sysfs. Ex. # /usr/sbin/ql-hba-snap-
shot --procfs [Other valid option]
-v, --verbose
This enables verbose display. The detailed information of LUNs will be displayed in addition to standard one. This option is only
supported in sysfs. Ex. # /usr/sbin/ql-hba-snapshot --verbose <Host number/-a>
SEE ALSO ql-dynamic-tgt-lun-disc(8), ql-lun-state-online(8), ql-set-cmd-timeout(8)Matthias Schmitz <matthias@sigxcpu.org> July 2009 ql-hba-snapshot(8)