Search Results

Search: Posts Made By: surjyap
Forum: Solaris 09-23-2009
1,497
Posted By surjyap
I am not getting any info using ping, dig or...
I am not getting any info using ping, dig or host. Is there any alternate?

---------- Post updated at 02:49 AM ---------- Previous update was at 02:43 AM ----------

I found in unix box there is...
Forum: Solaris 09-23-2009
1,497
Posted By surjyap
help regarding uuto
Hi,
uuto command in shell script has been used like below
uuto 123.txt cboas7!srlzadm
From the above command I understand that cboas7 is system name and srlzadm is user id in htat system. Here I...
Forum: Solaris 02-18-2008
1,842
Posted By surjyap
problem with flat file
Hi,
I have two flat files which is generated by some automated process.
When I tried to view both files in vi editor using vi command both looks same. But I typed
=>cat TEST_WESM900033...
Forum: Solaris 10-16-2007
3,004
Posted By surjyap
uupick and uucp
Hi,
Files are being transfered using uucp command in the directory
/usr/spool/uucppublic/receive/wes/cboas7/CB/abc.txt
/usr/spool/uucppublic/receive/wes/nrserv3/NR/abc.txt

When I was using...
1,637
Posted By surjyap
how to use uupick command instead of mv command
Hi ,
my script is like:
if test -s $BATCHFILES
then
cat $BATCHFILES |
while
read file
do
...
7,205
Posted By surjyap
getting mailx error
Hi,
I was using SunOS 5.6. I have used the mailx command in below fashion

mailx -s"RE: WES 'ftp' alert...no HDR record" ushman@lucent.com

Last week only I upgraded the Operating System from...
2,260
Posted By surjyap
error during the execution of script
Hi,
I have a cron job which executes daily once 9 PM.

The script is like
if [ ${PRNTSHELL} = "OC" ]
then
TYPE=OC
elif [ ${PRNTSHELL} = "I" ]
then
TYPE=i
elif [...
2,200
Posted By surjyap
awk command
Hi,
Let say a file contains 15000 lines. Out of these 15000 lines, 1000 lines belong to same group, 5000 lines to belong to another group. 3000 lines belong to some other group and 6000 belong to...
6,259
Posted By surjyap
What I believe that there is no such option "x"...
What I believe that there is no such option "x" for ps command. So plz resend it again.
6,259
Posted By surjyap
ps command
Hi
ca any one give clear idea on the below command
let say
PROG=invexe ( invexe is a process )
ps -ef | grep $PROG | grep -v grep|awk -F"|" '{print $9}'

By using the above command I tried...
2,790
Posted By surjyap
cat command
What does the below command means

$cat <<% >abc.txt
13,299
Posted By surjyap
yes you can do it. you can ftp directory, but...
yes you can do it. you can ftp directory, but before that you have to tar the file. It is always advisable to zip the file so there will be less chance of loss of data. for doing tar
you can use...
Forum: Solaris 02-24-2006
25,332
Posted By surjyap
remove the contents of a file
Hi
Let say a flat file contains 1000 lines. The cursor is at the 530 line number.
Now I like to delete all the line at one ahot. how it can be done?
4,341
Posted By surjyap
Hi you can try this command for a specific...
Hi
you can try this command for a specific user

$ crontab -l

It will show the list of processes which are to be executed through cron for a particular user.
Forum: Solaris 02-24-2006
2,384
Posted By surjyap
which processes executed first
When we login to a solaris terminal then which processes executed first?
I beleive that first system profile file and user .profile gets executed. So please let me know what happens exactly.

The...
4,306
Posted By surjyap
compressing a string
HI,
let say I have file having name "skp 27.doc". There is space between skp and 27. now I want to rename this file . So please let me know how is it possible?
one more issue .............
let...
6,452
Posted By surjyap
The user should have permission to execute cron...
The user should have permission to execute cron entry. I mean you check either cron.allow or cron.deny for permision. if cron.deny file is there then there should not be entry for the user. Or if...
14,505
Posted By surjyap
put a semicolon at the end of each line of a file
hi,
Consider there is a file containing 200 lines. please let me know which command is to be used to put a semicolon at the end of each line. if no single command is there then how it can be...
6,881
Posted By surjyap
Hi, Right now now I have not unix facility in...
Hi,
Right now now I have not unix facility in my system. But I can suggest you to use cut command. Using cut command get the required coloumn and store it in a variable. simillarly for 2nd file...
11,551
Posted By surjyap
yes you are right but why it gives 0 when I try...
yes you are right but why it gives 0 when I try to execute it through shell script. Let say the script is
dir1=/backup/surjya/mdbase
stgcnt=`grep -c $dir1 surya.txt `
echo $stgcnt
The value of...
11,551
Posted By surjyap
I tried like below: dir2=\"$dir1"\>"\" echo...
I tried like below:
dir2=\"$dir1"\>"\"
echo $dir2
stgdircount=`grep $dir2 xmldir.conf | wc -w | awk '{print $1}'`
echo $stgdircount

let say dir1=/backup/surjya/mdbase. hence the output for...
11,551
Posted By surjyap
how to find the exact pattern from a file?
Hi
Let say there is a file a.txt which contain number rows.
My intention is to find the number of occurences of a pattern. Let say the pattern is mdbase. then it should not count the ...
7,053
Posted By surjyap
how to get the value of a variable?
Hi,
I have written the following code and trying to get the value of the variable mylist.


#!/bin/sh
mylist=""
conffile=xmldir.conf
while read line
do
echo $line
mylist=""
ATTR=`echo...
2,495
Posted By surjyap
A shell script question
Hi,
I have a file say xmldir.conf. This is a flat file which contains the data in specific format not other then this. The format is
/backup/surjya/mvfile,noeof
/backup/surjya/mdbase,eof...
64,643
Posted By surjyap
shell script in makefile
Hi,
Can we execute a shell script by makefile.
I mean we will write a shell script in a make file and it will be executed when we compile the C++ program using make file.
Showing results 1 to 25 of 40

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