General :: Get The MAC Address From Windows Xp And Remove It From A File On A Unix Box?

Mar 13, 2011

I am tring to get the MAC address from windows xp and remove it from a file on a unix box. This is what I have so far:

getmac | plink.exe -ssh -pw "my pw" -noagent -m commands.txt root@192.168.1.82
commands.txt
cd /root
tr '-' ':' | tr -d '[:blank:]'

now this is what I get

10:9A:CD:5F:04:8ADeviceTcpip_{5A79FE8D:F227:4B91:9459:2701486C5D94}

All I need is the MAC. Everything after Device* is not needed.The file is /var/db/captiveportal_mac.db. The MAC address are listed like this.

MAC1
MAC2
MAC3
MAC4
MAC5

View 11 Replies


ADVERTISEMENT

General :: Windows - View The Unix Permissions Of A File In A .zip Archive?

May 19, 2010

is there a way to view the Unix permissions for a file under Windows?

View 1 Replies View Related

General :: Single C/C++ Program Using Unix Commands To Retrieve The Username, Associated Static IP Address?

Mar 11, 2010

For monitoring a network [LAN] I need a single C/C++ program using unix commands to retrieve the username, associated static IP address, what time user logged in, log out, total time system used by user. so that if a system has several users who used it @ different times of the day... then i need details of all users me,time of log in, static IP &all

View 1 Replies View Related

Programming :: Batch File To Run Unix Commands From Windows?

Nov 22, 2010

I need to write a windows batch file to run unix commands by logging onto a telnet unix server. For example , I might want the batch file to log onto the unix sever, run the ls command, collect the output in a file and ftp it back to my windows desktop

View 8 Replies View Related

Ubuntu :: Samba: Switching From Unix To Windows File Sharing?

Sep 9, 2010

I'm using [URL] to help set up my server for windows file sharing. I accedently pressed unix file sharing and now i can switch it to windows file sharing.it would be fine to uninstall the Unix file sharing and replace it with the windows counterpart.I have Ubuntu desktop 10.04 (because i keep getting an error with the kernel with the server editions)

View 1 Replies View Related

Programming :: Search For Ip Address In File And Remove It

Sep 22, 2009

I have a lot of files in the server with name like checkfile.jsp and in the file has two or three lines with an ip address xxx.xxx.xxx in it. I wish to know if there any command to grep for the i p address and remove itin file but keep the " ", eg "xxx.xxx.xxx"

View 9 Replies View Related

Programming :: Write A Batch File For Windows That Starts Cygwin Tool And Runs Unix Scripts?

Nov 17, 2008

I need to write a batch file for windows that automatically starts the cygwin tool in windows and executes the unix scripts.Previously we had these scripts in unix server.Now we need to migrate them to Windows server.For this reason we are using cygwin tool that allows the scripts to be executed on Windows server.We had written a batch file that starts the cygwin tool,but we were not able to execute the unix scripts.How can we write a batch file such that it executes all the unix scripts in cygwin.

View 5 Replies View Related

General :: Run Windows Programs On Unix OS?

Mar 16, 2010

i am now running Slitaz 2.0 and i would like to know how to run windows applications on my system. My OS didnt come with this wine ive been hearing about so i dont know what do do.

View 7 Replies View Related

General :: Windows PowerShell Equivalent To Unix - `pwd`?

Jun 9, 2011

In follow-up to the cmd.exe question, what is the PowerShell equivalent to echo %cd%, or Linux/Unix pwd?

View 3 Replies View Related

General :: UNIX File System Hierarchy?

Oct 3, 2010

What are the directories and files in Unix file-system that has default user permission set. For eg. home directory of a user can't be seen by the other users on the system without his permission. In the same way what are the other directories that by default has user permission set at the time user account has opened. Eg. /etc,/bin or what

View 3 Replies View Related

General :: Migration Of Data File In Unix

Aug 10, 2011

We planned to migrate data files in Unix to Linux. The file in Unix is in big endian data format where is linux is configured as little endian byre structure. This is causing problem in data computation.

How data can be ported to linux ( converting big endian to little endian).

How linux configured can be configured for big endian byte structure.

View 3 Replies View Related

General :: UNIX - Copy And Paste Between Different Bash Windows With Files Opend With VI?

Jun 15, 2011

Lets say I log in to bash, open a file in vi, then using alt-f2 I open a new terminal. After logging in I navigate to a second file and open that in vi. How can I CnP between these two files?

I found this from [URL]. I'm not familiar with this command shift-8-y-y. I follow the vimtutor and use virtual mode. I tried this sequence and was unsuccessful.

And, I read this about registers. I found a mention of using double_quote-p to 'put' or paste the register, but this does not work in a different file. The second file reported the register empty.

Alternatively, I read in the VIM docs, it is possible to open multiple files under split screens. This may be a course to a solution. The need I often encounter has me navigating in a different bash window to find a file, then wishing to copy between the two. Whereas, I imagine, a split VIM window useful for files in the same directory.

View 6 Replies View Related

General :: Copying File From Unix To Network Drive?

Nov 16, 2010

Solaris is the os used. I want to copy files from UNIX Machine to windows network drive.I know smbclient,ftp can be used. But is there any other best option i can use?

View 2 Replies View Related

General :: Unix Command To Send File To Printer?

Mar 28, 2010

Is it true that the UNIX commands to send a file to a printer for printing are system-dependent?

View 2 Replies View Related

General :: Find The Tag Value In Xml File Through Unix Shell Script?

Nov 3, 2010

the below tag is in the xml file. Now i want to find and extract the value of application name test1 and test2 one by one in the unix shell script. how to do this

<application name="test1">
</application>
<application name="test2">

[code]...

View 2 Replies View Related

General :: How To Look At History File In Unix Shell For User?

May 28, 2010

How to Look at history file in unix shell for a user, find 5 most often used commands.

View 5 Replies View Related

Programming :: Unix Command To Remove White Spaces?

Sep 18, 2010

Im using this unix command(in a php file) to remove a certain string and then remove the whitespace left by that string. Unofrtunately in many cases, the files get completely erased. Is there a workaround?

Code

<?php
$dir = "./";
$rmcode = `find $dir -name "*.php"

[cod3e]....

View 14 Replies View Related

Ubuntu Networking :: Remove Windows File Sharing Support

Jun 25, 2010

when I installed network sharing I accidentally installed file sharing for Windows networks to. How can I remove windows networks file sharing and keep only ubuntu's own network file sharing?We have wireless network and only Ubuntu machines connected to it

View 2 Replies View Related

General :: Convert "DOS" .txt File To Unix .txt File?

Apr 7, 2011

Possible Duplicate:convert CRLF's to line feeds on Linux

How can I convert DOS txt file to Unix txt file, so I can use my Linux parser properly?

View 7 Replies View Related

General :: Is There A Windows Equivalent Of The Unix "strings" Command

Mar 25, 2010

strings in Unix and Linux extracts printable strings from a binary file. Is there a version of this for Windows? I couldn't find one.

View 2 Replies View Related

Ubuntu :: File Extension Z - Unix Compressed Archive File?

May 6, 2010

Anyone know how to compress a file to extension z?not tar.gz , zip, 7zip

View 6 Replies View Related

General :: Change Windows Path To Unix Path?

Sep 14, 2009

I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup

View 7 Replies View Related

General :: Remove Write-Protected File - Will It Actually Delete The Password File?

Jul 30, 2010

When I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?

View 1 Replies View Related

General :: Windows - Selecting Which IP Address To Use For Outgoing Requests From Behind A NAT

Mar 12, 2010

Our organization has several external IP addresses. I am behind 2 layers of NAT and the servers choose which IP address to route my traffic to. Can I specify which IP address to use when finally leaving the organizations network. I know that source routing can be done in IPv4 by adding some options in the header. But can I configure my PC to add these options automatically. I have both a Windows and a Linux Machine.

View 1 Replies View Related

Ubuntu :: New Hyperaccelerated Alternative To Unix And Windows?

Jan 2, 2011

new hyperaccelerated alternative to unix and windows

View 1 Replies View Related

Networking :: Passwordless SFTP Between Unix Box And Windows?

Mar 29, 2010

I have to establish password SFTP between one Unix box and Windows in which certain files will be pushed from unix to windows server. Our client is insisting on using TurboFTP on Windows for ssh daemon to run. There are two components in TurboFTO- client and server.

1. I need help if I need to install both. As far as my knowledge with this software is considered, I dont think TurboFTP client to be running as the server componoent will itself run sshd.

2. Also, when I try to add server in TurboFTP server console, it provides me two options - local and remote server types. Local uses 3830 port by default and uses ip 127.0.0.1. If I use Remote server type which uses 3839 and I dont know what ip address to provide. I need help whether I shud go ahead with local server or remote server.

My doubt is if I consider local server type then whether my Unix box will be able to recognize if thie windows machine (which is also naving network specific ip address) has sshd running because windows has local server type enabled which uses 127.0.0.1.

View 3 Replies View Related

General :: Php File To Be Display When Type The Ip Address Only?

Apr 7, 2011

i have some php file and i store it inside /var/www/html/and to display it i type Quote:http://ip addrs/file.phpto display the details..and the problem is that i want the php file to be display when i type the ip address only like thisQuote:

View 3 Replies View Related

General :: Get Mounted IP Address Into Text File?

Jun 6, 2011

I am sharing directories using NFS.so one machine mounted those locations (Server). so i need to get what are the machine which successfully mounted (IP address of mounted locations). At the boot time server mount the remote location.but i want to get what are the successfully mounted location into text file.

View 12 Replies View Related

Programming :: Getting Error In Ftp From Windows To Unix Box - Permission Denied

Mar 18, 2009

I have a written a java code to ftp a file from the windows box to unix box. It keeps giving me the following error : "java.io.FileNotFoundException: PORT 204,63,56,5,16,78: 550 Permission denied." I am able to ftp manually from windows to unix.

View 5 Replies View Related

General :: How To Remove Linux Without A Windows CD

Jul 31, 2011

I'm currently dual-booting Ubuntu 11.04 and Windows 7, and I'm looking to uninstall Ubuntu and only using Windows. I know i have to remove the linux partitions and Grub and reinstall windows but i dont have a windows CD because my computer just has a recovery partition and i dont see how i could boot it without Grub.

View 10 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved