SCOUG-HELP Mailing List Archives
Return to [ 08 |
October |
2005 ]
<< Previous Message <<
>> Next Message >>
Content Type: text/plain
Sandy Shapiro wrote:
> In , on 10/08/05
> at 09:54 AM, "Steven Levine" said:
>
>
>>If you don't use the WL330g all the time, what you can do is create a
>>desktop object to issue the ifconfig command to create the alias when you
>>need it. You only need the alias to access the configuration pages.
>
>
> I'm a little rusty at this. What I did was:
>
>>From the command line, I typed:
>
> copy con ifconfig.cmd
>
> I then typed the line:
>
> ifconfig lan0 172.19.20.1 netmask 255.255.255.0 alias
>
> I then hit the Enter key and typed Control-Z and hit Enter.
> I got a file named ifconfig.cmd.
>
> However, when I try to run this file, I get the same line being executed
> over and over in an endless loop, and when I type netstat -r, there
> appears to be no change.
>
> I think there needs to be a Return command at the end of the line, and
> even thought I hit the return key before the Control-Z, it doesn't help.
>
> Is there a way to enter the Enter key into the command file, or am I going
> about this all wrong?
>
> Thanks,
> Sandy
>
Sandy,
I just copied the line you typed in your note (Ctrl+C), and then went
into the Editor (which for me is AE) and pasted the line into the edit
session. It made a second, blank line, which I deleted. Then I saved
and executed. It showed the ifconfig command and then a command prompt.
(I wouldn't have thought to create the file the way you described,
probably because I came from a mainframe environment, where I was used
to creating file using an editor.)
So it should be easy enough to "fix" your command file.
Note that in C:\MPTN\BIN (on my system anyway), there is an ifconfig.exe
(which of course there would need to be, so that your command file would
execute).
If you name your command file IFCONFIG.CMD, you'll need to be careful to
distinguish between the .EXE and the .CMD files. You might want to use
a slightly different name for the .CMD file.
Colin
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 08 |
October |
2005 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|