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


ADVERTISEMENT

General :: Command Line - SSH To Server Without Including Username In URL On Unix/Mac

Sep 8, 2011

I am trying to ssh into my server from the command-line without including the username in the url. I do not want it to send any username, as it currently takes the active account and sends that as user.ex:

ssh server.com -> (doesn't send default username)

instead of [URL] I would want to input username directly into the server, just like it is done using putty on windows. he wants to be prompted for a username, rather than having to provide one when connecting - but I don't really see the utility in such a thing. - birryree Sep 8 at 17:41

View 3 Replies View Related

General :: Unix Commands Same For Mac And Ubuntu?

Aug 21, 2010

I wonder if the unix commands (cp, mv, grep, args etc) are the same for Mac and Ubuntu. Do they have the same parameter lists and so on or do they try to stay the same but are slightly different?

View 3 Replies View Related

General :: SCP - Username And Password In Single Statement

Sep 13, 2010

I am trying to create a "GUI File Transfer " Application , for transferring the files within the network. For That I will obtain User name, Password through the GUI, I will have to append username and password in a single line and run it . I am facing difficulties in exploring the "command",

View 4 Replies View Related

General :: Unix - Cat Command To Save Results Of Other Commands

Nov 26, 2010

This question may be silly and super easy for linux connaisseurs, but I was just wondering, for instance, I want to use the >find command to search for a file and send the results to a text file

View 5 Replies View Related

General :: Finding UNIX Networking Commands In Detail?

May 16, 2010

finding UNIX networking commands in detail?

View 6 Replies View Related

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 View Related

Ubuntu Networking :: Static IP Address And The Install Configures For A DHCP Configured Address - Network Not Starting

Dec 16, 2010

Version 10.04 LTS. Installed desktop version and network worked but I needed a static IP address and the install configures for a DHCP configured address. I tried changing to static address using the System->Preferences->Network Connections application but was unable to get the system to come up with the network up.

So I manually modified the /etc/network/interfaces and the /etc/resolv.conf files. I restart the system but when I do an ifconfig, I don't see a configured IP address on eth0 (only the loopback address). If I run /sbin/ifup eth0 everything then works fine and ifconfig shows the correct address bound to eth0.

My files are as follows:

View 2 Replies View Related

General :: Setup Static Ip Address Via Terminal?

Jul 12, 2011

I imagine that there is already a thread for setting up a static IP, but I haven't been able to find it yet, so here we go.I have recently installed Fedora 15 on home machine. I have a very simple home network. Belkin wireless router with Window and Linux systems. The router is setup to be DHCP server. Router is setup to have lease time = Forever. Even with this setup, my router is assigning different IP address for my linux machine every time I boot the machine. So I would like to setup a static IP on my Linux.From my research so far, I'm suppose to make some changes to the file /etc/sysconfig/network-scripts/ifcfg-eth0. But I don't have this file in this folder. Should I just create this fil

View 3 Replies View Related

General :: Bind Static IP To A MAC Address Of The Device?

Mar 16, 2011

Ubuntu was a good choice for free server O/S. I am currently downloading it. My ISP wants to bind my static IP to a MAC address of the device that will be making my connection for me. Should my server be behind my router or in front of it? I kinda wanted it to be the access point and be able to monitor the usage from all the terminals in my house. We have 4 other PC's, a laptop and a PS3. My server is a Acer Altos G530 with 3.2 Xeon Processor, 4 gb of ECC DDR,

View 7 Replies View Related

General :: Point Domain To Server With A Static IP Address?

Sep 4, 2010

I am trying to point my domain to my server with a static IP address. My domain is registered with Network Solutions and they ask "Primary and Secondary DNS" settings in their setup. What primary and secondary DNS settings I need to give when I have a dedicated server with static single IP address with BIND installed.

View 1 Replies View Related

General :: SVN Multiple Commands Single Revision - Add New Folders (with Contents) To The Repository?

Jun 18, 2010

I want to do something like svn add dir1 dir2; svn ci dir1 dir2 but have it be only 1 revision. Is there a way to do this? Is this the correct way to add new folders (with contents) to the repository? We are restructuring the trunk, so I cleared it out and plan on putting these directories with their contents in it.

View 1 Replies View Related

Networking :: Static IP Address That Has A Reverse Lookup To "myipaddress.static.lyse.net" And Not Email Domain?

Apr 26, 2010

I got this message on Friday from just one domain. uote:mailsrv.forthnet.gr #<mailsrv.forthnet.gr #5.5.0 smtp; 554 5.5.0 Your message was considered to be spam by the FORTHnet Antispamming Policy and was not delivered to the recipient. The following spam tests returned positive for this message:FORGED_RCVD_HELO,RCVD_IN_BRBL. For further information visitWe are not a spamming community but it seems we have a statice IP address that has a Reverse lookup to "myipaddress.static.lyse.net" and not my email domain. Would setting a cname mail.mydomain.no -> myipaddress.static.lyse.net cure this problem or are there more tricks to be performedOnce I have cured the FORGED_RCVD_HELO I can move to getting the IP removed from BARACUDA.

View 2 Replies View Related

General :: IP Address Lookup - Where Are The Interface Configurations (set By Ifconfig, Not The Static Ones) Stored

Jan 28, 2011

where are the interface configurations (set by ifconfig, not the static ones) stored? I'm asking because I'm trying to understand, more broadly, the order of IP address lookup. If I ping the local machine (localhost, or one of the interfaces) no messages get sent out (at least according to wireshark), so some local lookup must be taking place.

View 1 Replies View Related

Programming :: Retrieve A Single String Or Value From /proc/cpuinfo

Oct 1, 2010

I'm trying to retrieve a single string or value from /proc/cpuinfo, but when I try to extract the model (not the model name) the model name comes with it, also it likes to print it twice...

Code:
model="`cat /proc/cpuinfo | grep model | cut -d: -f2 | cut -c1-3`"
echo $model

All i want this to do is spit out the model number once. (I need to pass it to another script)

View 14 Replies View Related

General :: Fedora 7 Machine Browses Internet On DHCP / But Fails Completely On Static Address

Aug 3, 2010

I am struggling with what might be a minor problem. I have a home computer which I would like to setup as a webserver and hence give it a static IP address. It is connected to by wire to a router that is connected to the WAN via PPPOE. If I enable the network card on DHCP it works fine in browsing the web. If I now set it to static IP address it does not brown. Essentially I use the command setup to run the static IP setup. I then set my IP address to 192.168.254.X , the subnet mask 255.255.255.0 and the default gateway to 192.168.254.1 (this is the router connected to the WAN). I am able to ping the router, however when I try and browse on static it does not work. Your help will be most appreciated as this has taken way too long to solve and I have Googled as much without success.

View 5 Replies View Related

Ubuntu :: SSH Restrict Public Key To A Single Username?

Apr 29, 2010

I set up SSH on a server running Ubuntu using rsa key authentication. I want to allow a friend of mine to log into the server with restricted access, so I created a user account named "guest" with its own home directory and ensured that it has no root access. I created a new pair of keys and added the public key to my authorized_keys, but when I was testing SSH I noticed that not only could I not log in as guest, I could use the key to log in as my own account and gain root access via sudo. How can I restrict specific private keys to only be able to log in as certain users?

View 6 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

General :: Static Versus Shared Libraries (Linking C Program With GCC)

Mar 16, 2010

I have a third party static library (libSTATIC.a) that I cannot recompile into a shared library. I want to create a shared library (libSHARED.so) that uses the C functions in the static library. Is it possible to do this? In other words, when linking a C program with gcc by using the -shared flag, is it necessary that all all libraries invoked in the program (even low level libraries such as libc for example) be available as shared libraries as well?

View 2 Replies View Related

General :: Run Commands Using A Java Program?

Apr 9, 2010

I want to execute Linux commands using a Java program. I came to know that we can use Runtime.getRuntime().exec("commands") to execute the commands through the program. I'm new to both Linux and Java.

View 2 Replies View Related

General :: Command Line - Unix - Program That Can Handle All Popular Compression/archiving Formats - E.g.tar, Gzip, Bzip2, Zip?

Jun 22, 2011

I sometimes get confused by the varying command line options I need to run common Unix archiving and compression software (e.g. gzip, bzip2, zip, tar).

Is there a program out there that can just Do What I Mean for common cases? For example:

View 2 Replies View Related

Programming :: Invoking UNIX Shell Commands From HTML Webpage

May 11, 2010

I have a few questions regarding HTML, UNIX and Javascript. I've been tasked with creating a fairly simple webpage that takes a few inputs. Each input must correspond to an argument in a UNIX command running on a server.On a UNIX server we have a script (.ksh) that takes 3 arguments. The result of the script is a data file which is FTP'ed to an external server. Let's forget about the FTP portion for now. I would like to know where I should begin.What I know so far:

1) I will need HTML to create the webpage. Skill level is high
2) I will need Javascript to make my webpage more interactive. Skill level is high.
3) I will need to understand the UNIX environment. Skill level is high.

View 8 Replies View Related

General :: Program Stopped Responding To Commands?

Apr 26, 2010

I got to the prompt in the subject line. Then I typed grep /sounds/ and return.Then the program stopped responding to commands. I could type things, but nothing happened. Not even when I typed kill -9 and return.Why did the thing freeze up? I don't think there is folder /sounds/.

View 2 Replies View Related

General :: What Commands Should Use In "grub>" To Get Single Mode To Repair Installation

Jan 5, 2011

I use Fedora 14 and have problems with graphic mode. What commands i should use in "grub>" to get single mode to repair my installation. This appears after try to change installt packages.

View 5 Replies View Related

General :: Possible To Create A Symbolic Link That Include Commands For Program?

Feb 11, 2010

Is it possible to create a symbolic link that include commands for the program?

For instance, I do the following to start the program:

./script -somecommannd

I would like to create a symbolic like that includes "-somecommand"

Is this possible? or would I need to create a second script that executes that command, and link to that script?

View 4 Replies View Related

Networking :: Program To Assign Globa LIPv6 Address And Bind() To The Previously Assigned Address?

Apr 24, 2010

Consider the following program:

Code:
#include <stdio.h>
#include <stdint.h>

[code]...

View 2 Replies View Related

Ubuntu :: Static IP Address Cannot Be Set?

Apr 20, 2010

I have been fiddling around with my ip address configuration using several sources, and this is what I have in the /etc/network/interfaces file:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.122
broadcast 255.255.255.255
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.254

Yet, this is what I have in the ifconfig after I restarted the computer:

[Code].....

Could there be any mistakes I have made in the file? Why is it that I seem to have set a static ip address here and is not working?

View 8 Replies View Related

Networking :: How To Set Static Ip Address?

Mar 15, 2010

i have a ubuntu 9.10 server on a wlan behind a debian server/router/firewall.i have had dhcp assigning the ip address to the server and then accessing the server through a port forward that has been working okay.i want to assign a static ip address to the server so that i wont have to worry about checking that as i reboot the system and so forth.

View 10 Replies View Related

Programming :: C Program In Unix Environment?

Jan 12, 2011

my instructor gave me a project in c programming language, the probelem i don't have a c program combiler and i don't have a unix os on my computer, and my knowledge in c program is soo weak i took it years ago, i have this code but it does't compile on Dev-C++ on Windows OS, so if you just help me out with this program:

#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

[code]....

View 5 Replies View Related

Fedora :: Configure A Static IP Address (14)?

Apr 3, 2011

I am trying to establish a static IP address using the instructions I found at:I cannot find this file in Fedora 14:Code:/etc/sysconfig/network-scripts/ifcfg-Auto_eth0

View 8 Replies View Related







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