Search Results

Search: Posts Made By: ajayyadavmca
2,625
Posted By ajayyadavmca
thanks
thanks , i have solved it by using "awk" with help of some other shell programmer.
2,001
Posted By ajayyadavmca
thanks
thanks corona, i have changed the way of those file as you suggested before. so thats not required.
2,625
Posted By ajayyadavmca
working with tar exclude command
i have issue with tar, let me explain

when i run below command it works perfectly as usual.
tar -cvf /tmp/temp.tar --exclude="exclusion expression" dir

my requirement is --exclude="exclusion...
2,697
Posted By ajayyadavmca
not easy
this is a c program,
i am not really aware of any requirement any one will have.

but you can check : CCsh, The Bourne Shell Compiler (http://www.comeaucomputing.com/faqs/ccshfaq.html)
*Remember...
2,528
Posted By ajayyadavmca
Copy files/directories excluding multiple paterns
my directory structure is like below:


basedir\
p.txt
q.htm
r.java
b\
abc.htm
xyz.java
c\
p.htm
...
Forum: Red Hat 04-23-2012
1,611
Posted By ajayyadavmca
system activity and information data
Hi all,

i need to collect all system activities data(processes running, disk details, memory, etc), system logs and things related.

i heard of cfg2html but its not available for my CentOS...
2,001
Posted By ajayyadavmca
i thought i have explained it well: So all this...
i thought i have explained it well:
So all this process is when any error occurs in any of project they want to collect some logs and some information so these configuration template have files need...
2,001
Posted By ajayyadavmca
new to scripting
may be i could not get it completely: what are those function for in each script? please elaborate bit more.

problem here is:
each subprojects belogs to different group they dont wana write...
2,001
Posted By ajayyadavmca
ok here is more
ok let me give u details:

1. so our product consists of different sub projects which doesn't talk to each other they work independently.
2. Each sub project has its own directory structure and...
2,001
Posted By ajayyadavmca
thanks for reply
thank you so much for feedback.
let me explain my problem.

My project consist of submodules and each module want me to do some kind of same work(copy some of their files , run few command and...
2,937
Posted By ajayyadavmca
may be
NR=`wc -l yourfile`
if [ $NR -eq 1 ]; then
echo no data >> yourfile
fi

corrected $ before NR.
code tags for code, please.
2,001
Posted By ajayyadavmca
reading a file for processing
i have file which looks like this:

file=/var/log/log1.log
file=/var/log/log2.log
cmd=ls -l
cmd=dir > /var/log/mylog.log


now i have to write a script which will read all "file" tag values...
Forum: Red Hat 04-20-2012
4,565
Posted By ajayyadavmca
thanks
Thanks for a kind reply. i come from java world, why i was looking into script solution is because wanted to complete this feature fast. and getting OS related data will be much easier and faster in...
Forum: Red Hat 04-20-2012
4,565
Posted By ajayyadavmca
Collecting logs by running command
Hi, i am a general user of linux but we work mostly on windows next i am moving full time on linux.

here is my question:
We have product which consist or several subsystem each subsystem has one...
Forum: SuSE 09-05-2008
157,525
Posted By ajayyadavmca
processor : 0 vendor_id :...
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 33
model name : Dual-Core AMD Opteron(tm) Processor 8214
stepping : 0
cpu MHz :...
Forum: Linux 09-05-2008
2,568
Posted By ajayyadavmca
RPM Package question
Hi,
I have built one RPM last year. now we have another version of that RPM. in previous release we had few extra files then now. so when user upgrade it those files get deleted by RPM package. We...
3,828
Posted By ajayyadavmca
thanks for all. thanks for dirname command, i did...
thanks for all. thanks for dirname command, i did :
while read line
do
mkdir -p `dirname $line`
touch $line
done < yourfile

simple! thanks
3,828
Posted By ajayyadavmca
thanks i got it.
thanks i got it.
3,828
Posted By ajayyadavmca
i have dirname
i have dirname
3,828
Posted By ajayyadavmca
but it will create a directory as my filename. ...
but it will create a directory as my filename.
for ex: i want to create dire "/root/xy/yz/zz/" and a file in that named"abc.txt" and it will create directory as "abc.txt"
am i correct or i got u...
3,828
Posted By ajayyadavmca
yes. want to write mkdir -p $path and then touch...
yes. want to write mkdir -p $path and then touch that file name
3,828
Posted By ajayyadavmca
creating files and getting input from another file
I have a file where i have files name with absolute path.
Ex: files.dat and contents are:
/root/xy/yz/zz/abc.txt
/root/xx/yy/zz/ac.txt
/root/xz/yz/zx/bc.txt
/root/xy/yz/zx/abcd.txt

now i want...
Forum: HP-UX 05-02-2007
7,649
Posted By ajayyadavmca
yes
Hi awk,

Yes i m able to create file has name more than 24 char.
i tried to rename file they renamed easily with long file name.

When i extract tar the file names it shows are correct but i m...
Forum: HP-UX 05-02-2007
7,649
Posted By ajayyadavmca
Tar command issue
I made tar file having file names more character( up to 50).
When i extract file in Linux it extracts fine.. but in HPUX all file name which are more than 24 are trimed to 24 characters.
i m using...
2,158
Posted By ajayyadavmca
Hi Sygate..
Hi Sygate,

Yes i know about rpmbuild but in my case requirement is simple.. i need a pak which extract file and run my script file which in inside pack.

I think its simple. I don't have to do...
Showing results 1 to 25 of 33

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