Search Results

Search: Posts Made By: amit_sapre
22,082
Posted By amit_sapre
U cannot ftp from Unix system to Windows system. ...
U cannot ftp from Unix system to Windows system.

The reason being ftp on Windows is always a client, while ftp on Unix can run in client as well as server mode.

The only way to transfer files...
2,443
Posted By amit_sapre
sendmail problem
Hi,

I have some problem with sendmail daemon.

Earlier it was working fine as I used to get alert mail through crontab jobs.

Two days back it stopped sending alert messages.

When I...
14,348
Posted By amit_sapre
Try changing initial lines to ... ...
Try changing initial lines to ...

MONTH=`date +%b`
YEAR=`date +%y`
month=`echo $MONTH | tr '[A-Z]' '[a-z]'`

Hope this works...
14,348
Posted By amit_sapre
I modified the following lines :- ...
I modified the following lines :-

MONTH=`date +%b`
YEAR=`date +%y`
month=`echo $MONTH | tr '[A-Z]' '[a-z]'`

Hope this works....
6,282
Posted By amit_sapre
I feel the easiest way to disable hme0 network...
I feel the easiest way to disable hme0 network interface is :-

1. Rename the file /etc/hostname.hme0 to something else (or delete that file)

2. Reboot the system.

This ensures that hme0...
3,188
Posted By amit_sapre
I have script where the string and count are...
I have script where the string and count are variables

===================================================
#!/bin/sh

generate_string()
{
string=$1
count=$2

result=""

while...
9,480
Posted By amit_sapre
Hi Pradeep, To get the current time of any...
Hi Pradeep,

To get the current time of any machine, try to read the data from port no 13.

For e.g. Using telnet :

Telnet <machine name> 13

Trying <I.P Address>...
Connected to <remote...
8,680
Posted By amit_sapre
Hi Nir, Any argument passed to sed in single...
Hi Nir,

Any argument passed to sed in single quotes is not interpreted by shell before processing.

The shell will pass the argument as it as to sed for processing.

A work around for this...
14,956
Posted By amit_sapre
Fot vi editor , the default path for storing the...
Fot vi editor , the default path for storing the temporary file is /var/tmp.

The FS may get full if u try to open large files.

To avoid this, add an entry in $HOME/.exrc file

set...
Forum: IP Networking 07-18-2005
8,823
Posted By amit_sapre
Hi, As mentioned in your reply, I double...
Hi,

As mentioned in your reply, I double checked the /etc/hostname.hme0 and /etc/hosts entries. Also I checked these files for any tab space.

I could find any problem with these files. :(
...
Forum: IP Networking 07-15-2005
8,823
Posted By amit_sapre
ifconfig problem
Hi all,

I am getting some error messages during bootup

ifconfig :<hostname> bad address

and some more messages related to it.

I some how checked the /etc/hostanem.hme0 /etc/hosts file.
...
4,649
Posted By amit_sapre
Permission of serial ports are given by drivers...
Permission of serial ports are given by drivers of serial ports.

During reboot , the serial port driver is initialised. in this process, it assignes some default permission for the devices, it...
2,637
Posted By amit_sapre
Performance measurement of Code
I hope I am posting the query at right place..

I have the project running as 32 bit application on Solaris 8. I want to port this to 64Bit application.

Before I start this process, I would like...
Forum: Programming 07-05-2005
3,124
Posted By amit_sapre
Here is one sample makefile for your purpose ...
Here is one sample makefile for your purpose

# Sample Makefile

SHELL=/bin/sh

.KEEP_STATE:

# Include .cpp in suffixes list
.SUFFIXES:$(.SUFFIXES) .cpp

# Rule for .cpp to .o
.cpp.o:
...
2,396
Posted By amit_sapre
Modify the echo command as echo "$a \t $b" ...
Modify the echo command as

echo "$a \t $b"

I hope this will solve the problem of alignment.

If required u can add more "\t" to provide more spaces between the strings.
4
rsh
2,355
Posted By amit_sapre
I don't think that permissions of ~/.rhosts file...
I don't think that permissions of ~/.rhosts file is the problem.

Let me explain in details the procedure for using rsh command...

The setup is :-
server 1 - login guest
server 2 - login admin...
61,789
Posted By amit_sapre
Sorry for reply back .... >> Hi Amit, ...
Sorry for reply back ....

>> Hi Amit,



>> sed '$!N; /^\(.*\)\n\1$/!P; D'

>> Could you explain the command - bit by bit if you don't mind.

>> Thanks!

I think u can refer the...
61,789
Posted By amit_sapre
Hi Vino, This command will keep the first...
Hi Vino,

This command will keep the first entry as it is and delete the other entries,

irrespective of whether the file is sorted or not.

No prior assumptions while executing this command.
61,789
Posted By amit_sapre
Try out this one... sed '$!N;...
Try out this one...

sed '$!N; /^\(.*\)\n\1$/!P; D'

# The first line of duplicate ones is only kept and rest are deleted.

I have tested this with around 1GB file.

it took about 13 min to...
108,559
Posted By amit_sapre
Check out this command date '+%a' this...
Check out this command

date '+%a'

this will return the current day.

Their are other options too. Check out the man page of date command
2,417
Posted By amit_sapre
try out this... ls -l <filename> | awk...
try out this...

ls -l <filename> | awk '{print $5}'
4
1,924
Posted By amit_sapre
The file myfile.z is definately compressed by...
The file myfile.z is definately compressed by some program.

To find out which program has compressed it, use the file command.

Syntax : file <filename>

This will tell u in which format the...
1,867
Posted By amit_sapre
U can use the format command on root for viewing...
U can use the format command on root for viewing disk slice configuration.

In format utility, select the disk, then go to partition menu and then print the partitions. This will list all the...
88,975
Posted By amit_sapre
This might help sed '/^$/d' infile.txt >...
This might help

sed '/^$/d' infile.txt > outfile.txt

check it out.... :cool:
3,007
Posted By amit_sapre
echo "`cat a.txt`" > b.txt
echo "`cat a.txt`" > b.txt
Showing results 1 to 25 of 28

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