Search Results

Search: Posts Made By: mansa
Forum: Programming 08-21-2009
6,922
Posted By mansa
chmod:No such file or directory
sprintf(fname, "core.%d", pid);
(void) unlink(fname);
if (ttrace(TT_PROC_CORE, pid, 0, 0, 0, 0) != 0) {
perror("TT_PROC_CORE pass");
Fail();
}
if (chmod(fname, 0) != 0) {
...
Forum: HP-UX 08-10-2009
8,242
Posted By mansa
ENOENT error occurs while issueing execlp command
/************************************************************************
*
* TEST NAME: setrlimitd_su.c
*
* PURPOSE: To verify the soft (rlim_cur) and hard (rlim_max) limit
* of process...
Forum: Programming 05-25-2009
8,209
Posted By mansa
Thanks for your reply and clarification that...
Thanks for your reply and clarification that problem is reproducible everytime..


I have a doubt,that if we call pthread_exit(0); then Thread0 terminates definately right?? If Thread0...
Forum: Programming 05-25-2009
8,209
Posted By mansa
Doubt on pthread_exit and pthread_join
Main function creates Thread0 and Thread1 by using pthread_create systemcall.

In Thread0() {
we are calling pthread_exit(0) ;
}

and in Thread1() {
status= pthread_join(tid[0],NULL);
...
1,560
Posted By mansa
Thanks Franklin for your reply and solution.. ...
Thanks Franklin for your reply and solution..

This solution requires slight modification..

$ awk '/quota/ && !(match($4,$2))' /etc/fstab
domain#ufs_mnt /ufs_mnt...
1,560
Posted By mansa
Comparison doubt..
Hi,

/etc/fstab file contains:
==================
cluster_root#root / advfs rw 0 1
cluster_usr#usr /usr advfs rw 0 2
cluster_var#var /var advfs rw 0 2
/proc ...
1,606
Posted By mansa
Thanks a lot Jim...
Thanks a lot Jim...
1,324
Posted By mansa
is that possible to keep statements in any loop??
Hi,

Actually i stored all validdisks in one array and corresponding partitions required for all individual disks in other array..

Example:
Validdisks[$diskcnt]=dsk2 dsk3 dsk5
...
1,606
Posted By mansa
Could you please help me in korn shell scripting.
Could you please help me in korn shell scripting.
1,606
Posted By mansa
Doubt on Array creation
Hi,


Suppose partition=9
then by checking that partition variable value ,i need to create an array variable which must contain 9 values and must be repeative as a,b,g,h,a,b,g,h,a...

...
4,299
Posted By mansa
How to create file in ksh scripting with permission(rw-rw-rw)
Hi,
Please provide your inputs..
Thanks in Advance,
Mansa
1,821
Posted By mansa
Create path which has length=1023.
Hi,

Please help me..

PATH_MAX=1023
I need output as below:

/mansa/filesssssssssssssssssssssssssssssssssssssssss

Please send me code in ksh shell script..

while [[ i < PATH_MAX ]]...
5,916
Posted By mansa
Hi, Could you please send me the same code...
Hi,

Could you please send me the same code in shell programming(sh) instead of perl..

Thanks in Advance,
Mansa
5,916
Posted By mansa
Hi, Thanks for spending time on this.. ...
Hi,

Thanks for spending time on this..

I am expecting output as below:


/tmp/filesssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

and that length must exceed till...
5,916
Posted By mansa
Hi Jim mcnamara, As i am poor at...
Hi Jim mcnamara,


As i am poor at scripting.. Could you please send me in the form of script that helps me alot...

And i am going to use that pathname(which is too long) as first argument...
5,916
Posted By mansa
yes jim mcnamara .. I am trying to...
yes jim mcnamara ..


I am trying to create PATH such that i must receive "ENAMETOOLONG" error..

Please let me know how to create it..

Thanks in Advance,
Mansa
5,916
Posted By mansa
Creation of directoryname with Max limit
Hi,

Please provide your inputs..


# define PATH_MAX 1023 /* max number of characters in a pathname (not including terminating null) */


Could you please let me...
1,278
Posted By mansa
Hi, Please let me know if you need further...
Hi,

Please let me know if you need further explanation...

Please help me...

Thanks,
Mansa
1,278
Posted By mansa
Please let me know
Hi,

Please let me know how to check for a disk which must satisfy below two conditions:-

1> Atleast one odd number of path must be there
2>And all partitions in that disk must be unused.
...
3,064
Posted By mansa
Hi, Might be it differs with Shell.. I am...
Hi,

Might be it differs with Shell..
I am trying it on ksh shell...

========================

mullins:/qarun (ROOT) >
$ disklabel dsk1 > infile
mullins:/qarun (ROOT) >
$ cat infile
#...
3,064
Posted By mansa
Hi Zaxxon, I too tried the same way but i...
Hi Zaxxon,

I too tried the same way but i didnt get the output..

$ disklabel dsk1 > infile
mullins:/qarun/tools/lib (ROOT) >
$ cat infile
# /dev/rdisk/dsk1c:
type: SCSI
disk: BD018635C4...
3,064
Posted By mansa
Hi, $ disklabel dsk2 > infile $ awk...
Hi,

$ disklabel dsk2 > infile
$ awk '/^a|^b|^g|^h/ && $4 == "unused" {sub(/:/,"",$1); print $1}' infile

Nothing displaying here..

I want the output as value=4(if all 4 partitions are...
3,064
Posted By mansa
Hi zaxxon, I tried as per your...
Hi zaxxon,

I tried as per your comments..Could you please look at it...

$ disklabel dsk2 > infile

t=`awk '/^a|^b|^g|^h/ && $4 == "unused" {sub(/:/,"",$1); print $1}' infile`
$ echo $t

...
2,751
Posted By mansa
Hi, In my previous update i forgot to...
Hi,

In my previous update i forgot to mention the "scsi.tmp" file contents..

$ cat scsi.tmp

SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
HWID: DEVICEID...
3,064
Posted By mansa
Hi, I tried as below way.. $...
Hi,

I tried as below way..

$ disklabel dsk2 > file

$ t=`awk -F":| " '/^(a|b|g|h)/&&$5=="unused"{print $1}' file`
$ echo $t

$

I didnt get any output...

Please let me know how...
Showing results 1 to 25 of 33

 
All times are GMT -4. The time now is 04:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy