Search Results

Search: Posts Made By: amit4g
4,667
Posted By amit4g
thx a ton danmero :)
thx a ton danmero :)
4,667
Posted By amit4g
Renaming multiple files
hi,

I've a machine running RHEL3,kernel version 2.4.
i need to rename multiple files under one directory as follows:
[root@venus ] ls
demo.c demo.S demo-1243.sw demo.xyz
and now i need to...
Forum: Programming 04-30-2008
6,488
Posted By amit4g
fork multiple shells
Hi,

i was trying to play with fork,exec and signal for spawning multiple new shells, but it seems that i'm doing blunder somewhere.

<sample code>


1 /*
2 * The idea is to fork...
Forum: Red Hat 02-14-2008
8,990
Posted By amit4g
kernel compilation: ncurses issue
Hi,

While trying to build the linux kernel - 2.6.24.2,
i get the following error message during initial phase(make menuconfig) :
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such...
Forum: Linux 01-28-2008
3,345
Posted By amit4g
[amit@venus]$ cat temp.c #include <stdio.h> ...
[amit@venus]$ cat temp.c
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#define MYVAR
MYVAR int main(void){
printf("success\n");
exit(EXIT_SUCCESS);
}

[amit@venus]$ gcc -o temp...
Forum: Linux 01-25-2008
3,345
Posted By amit4g
How does NORET_TYPE works ?
Hi,

I was looking at the panic() code in linux kernel which is defined as:
51 /**
52 * panic - halt the system
53 * @fmt: The text string to print
54 *
55 * Display a message, then perform...
Forum: Linux 01-08-2008
12,890
Posted By amit4g
kernel:how to modify and read the tick rate:HZ
hi,

one of our customer is facing an issue with jiffies wrap up.
on a 32 bit machine, the variable jiffies count upto 472 days.
the customer's server was up for 472 days ('uptime') and to...
Forum: AIX 10-23-2007
15,654
Posted By amit4g
Hi Bakunin, Thanks for your reply,Yes the...
Hi Bakunin,

Thanks for your reply,Yes the disk was under control of another Volume manager(Veritas Volume Manager),After removing from it,i could create the
OS-native Logical volumes.

Thanks,...
Forum: AIX 10-20-2007
15,654
Posted By amit4g
AIX procedure for creating a logical volume from CLI
Hi,

What is the typical AIX procedure for creating a logical volume from CLI.

I have mostly worked on HPUX so far and on which the typica steps are:

1: pvcreate -f /dev/rdsk/<mydisk>
2:...
1,526
Posted By amit4g
limiting characters upto <xyz> columns
Hi,

Recently i did some code changes in one of the text file.
During the code review,i've been asked to allign the comments
in this file to XYZ columns(say XYZ=40).
Now the problem is that this...
1,865
Posted By amit4g
Thx a lot craig!
Thx a lot craig!
1,865
Posted By amit4g
Confusion over a small conditional script
Hi,

I was going through a file containing hundreds of lines of codes having conditional statement written as:

log()
{
echo $@
}

num=$(/usr/bin/rsh <one_machine> -l root 'ls -d...
3,390
Posted By amit4g
i guess i found what i was looking for :) find...
i guess i found what i was looking for :)
find ./ -type f|xargs grep <pattern>|more
3,390
Posted By amit4g
locating a string pattern in a tree
Hi,

How can i find a specific string pattern in the entire tree(several directories containing multiple sub directories ) ?
$ find ./ -type f |grep "<pattern>" will not do as it will just give...
Forum: Programming 05-07-2007
29,961
Posted By amit4g
sheer stupidity by me .(My applogy) declared a...
sheer stupidity by me .(My applogy)
declared a structure pointer and never assigned it to anything(should have assigned it to structure).

Anyways,Better late than never : )
Forum: Programming 05-07-2007
29,961
Posted By amit4g
Thanks a ton anbu23 : )
Thanks a ton anbu23 : )
Forum: Programming 05-07-2007
29,961
Posted By amit4g
Accesing structure member:Error:dereferencing pointer to incomplete type
[amit@localhost cprg]$ gcc -Wall -Werror struct.c
struct.c: In function `main':
struct.c:18: error: dereferencing pointer to incomplete type

[amit@localhost cprg]$ cat struct.c
#include...
4,020
Posted By amit4g
Thanks to all of you,this almost satisfies my...
Thanks to all of you,this almost satisfies my querry.
4,020
Posted By amit4g
Howto create a file
Hi folks,

How do we create a file using shell script?
i mean to say that do we use
is it a good approch to do
echo "abc" >file
echo "xxxx" >>file

or is there any better method?

Thanks,...
Forum: HP-UX 02-07-2007
2,142
Posted By amit4g
Services persistant across reboot
Hi All,

I need to run a daemon which should start automatically during reboot.
which all files i need to alter/modify ?
/etc/inittab ?

Thanks,
Amit
2,884
Posted By amit4g
Hashing or MD5
Hi,

how can one find that which encryption algorithm the system is using for keeping the user password in the /etc/passwd or /etc/shadow file.
Is it
1: Hashing ( which considers only first 5...
Forum: AIX 12-15-2006
2,530
Posted By amit4g
services persistant across reboot
Hi,

I am nerw to AIX.
how can i make certain services to be persistant across reboot,similar to "chkconfig" in linux.

Thanks,
amit
1,918
Posted By amit4g
Need help on SCRIPT(1M) utility
Hi All,

I need to do a lot of manual entries at shell prompt.
So to collect the logs(each command fired in that session, i use "SCRIPT(1) : make typescript of terminal session"
this is kool,but...
Forum: HP-UX 10-31-2006
9,109
Posted By amit4g
Hi, after doing bdf i got following output: ...
Hi,

after doing bdf i got following output:
root@MC1/var/adm/newdir/ $ bdf mydir/
Filesystem kbytes used avail %used Mounted on...
Forum: HP-UX 10-31-2006
9,109
Posted By amit4g
querry on du
hi all,

To summerize disk usage in human readable format we have "du -h" in linux,which gives the
disk usage in MBs.
do we have something similar in HP-UX ?

thanks,
amit
Showing results 1 to 25 of 29

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