Programming :: Create Script That Gives Network Computer Information?
Oct 28, 2009
I am new to scripting and I have planned to create script which gives me network computer inforamtion. therefore, I want to know how to write script that sends me computer information to my email add.
View 4 Replies
ADVERTISEMENT
Mar 1, 2010
I have the following code snippet:
Code:
my $file = 'test/mybigfile';
my $zip = Archive::Zip->new();
my $zipped = $zip->addFile($file);
[code]....
it simply takes a file (in this case, "mybigfile") and creates a ZIP file containing that file only. Now, my problem is that when I go to decompress the ZIP file, it creates the relative (or absolute, depending on case) path of the original file. To make an example:
Code:
$ pwd
/tmp/perl
$ ls -R
[code]....
What I need is *not* to store the path information inside of the ZIP file, so that once I decompress the ZIP file I only get the original one without having paths created.
View 2 Replies
View Related
Sep 24, 2010
First, (for samba) how do I determine whether my computer "gets IP address information from a dhcp server on the network," and whether "the dhcp server provides info about WINS servers ("NetBIOS name servers") present on the network," and consequently whether a change to my smb.conf file, "so that DHCP-provided WINS settings will automatically be read from /etc/samba/dhcp.conf," and whether the dhcp3-client package must be installed?
View 2 Replies
View Related
Nov 13, 2009
I want to get the hardware information in linux. As in windows we can have API to get the network adapter information and all. But in linux why dont we have? i try to read network adapter info in /proc/bus/devices file.. but that file is very hard to parse.and i looked at the lspci source c ode. but unfortunately I dint undersatnd that code to get the network adapter information.
View 1 Replies
View Related
Aug 13, 2010
Asterisk and its cousin technologies intrigue as well as confuse me. I'm wondering: Is it possible to set up an Asterisk (or other) server on a home computer with no special hardware and use it to route calls between mobile devices in remote locations? I'm hoping this could work similarly to Skype Mobile, Google Voice, etc., except on a WAY smaller scale. This is just something I'd use personally for calls to family and friends--nothing huge.
Since my computer is just a regular laptop with no 3G connectivity, I don't expect to use 3G for calls. I just think it would be cool, for instance, to go to a caf� with WiFi and use a SIP/VoIP client on my Android phone to call up a friend who also has a phone or PC with a SIP/VoIP client on it. I realize I could do the same thing far more easily with an account at Skype or some other provider. My interest in attempting this project is more for the learning experience than practical use.
If indeed this is possible to do with the hardware I already own, any tips for starting out? My computer is a MacBook Pro 5,5 (dual-booting Sabayon Linux and Mac OS X). I know I could install Asterisk from within Sabayon, install a specialized telephony distro to a new partition, or run a virtual Asterisk machine--but I'm not sure which option, if any, would be most appropriate here. I'm also not sure if Asterisk would accomplish what I want, or if I should look at other software.
View 6 Replies
View Related
Aug 4, 2010
I insert the domain name "g3c" in menu: System->Administration->Network (file attach)
When i reboot the computer this information lost: why ?
Where i must insert this information ?
My s.o. is debian 5.05
View 2 Replies
View Related
Jan 5, 2011
I have been playing with Linux consistently for a couple of months now. I've been a Windows sys. admin for most of my career, so Linux is pretty strange for me. I started off with computers way back with the TRS-80 and then eventually moved to DOS systems. So the command line interface (CLI) of Linux was not completely alien to me, yet my lack of knowledge on the syntax and commands is holding me back. I have come a long way.
Recently I needed to play around with some DNS settings and one of the commands I used frequently in Windows, IPCONFIG /ALL, doesn't have a direct relative that displayed the same information. If you run ifconfig, it doesn't return the DNS servers you are currently using. You have to run a separate command to retrieve that information.
What I have done is created a super simple script that displays the network information for my primary LAN adapter, which is ETH0 in my case. After that, it shows the domain and name server information. Then it pauses for 20 seconds before closing the terminal window.
Here are the contents of the script file:
ifconfig -a eth0
cat /etc/resolv.conf
sleep 20
I simply right-clicked the Linux desktop, choose Create Document, Empty File. I named it something like Network Info. Then I opened it and put this information in it, saved it, and closed it. I renamed the file and added a .sh extension to the end which makes it into a script file. Next, right-click the script and go to properties. In the Permissions tab, check the box next to Execute: Allow executing file as a program. Then click close.
To run the script, just double-click the icon and then click Run In Terminal at the prompt. The terminal window opens, displays the information, and exits after 20 seconds. If you need it longer than that or need a different interface (such as wlan0 for your wireless), you can change or even add that in.
This was all done in Ubuntu 10.10. I know it is very simple and very straight forward and welcome thoughts and feedback about simpler ways to do this. For me, the old-school Windows admin, it's a baby step in the right direction. I am really enjoying learning the Linux OS.
View 7 Replies
View Related
Oct 17, 2010
I need a way to create wmv video thumbnails with file information (name, size, resolution, duration) using Ubuntu.
View 6 Replies
View Related
Jul 5, 2011
I want to monitor my Android phone's network traffic over WiFi. More specifically, I'm interested in which servers are queried (possibly silently) while my phone is connected. How can I accmplish it?
I have installed Wireshark on my box, and have a working usb adapter. How can I make my Ubuntu act like a router, so I will be able to snif packets through Wireshark?
View 9 Replies
View Related
Nov 11, 2010
My wifes networked computer connected to the network just fine when it was Win XP. Now that Ive converted it to 10.04 (completely) it can see the network, but it just wont connect to it. I had no problem converting my computer to Ubuntu and it sees the network and accesses it great. Files, folders and hard drives are all shared. So, one computer connects great, the other does not.**I dont know what to do at this point.Here is the layout:My Comp (10.04) ---------......Main Network Comp (XP)Wife Comp (10.04) -------/The main network computer is XP as it has software on it we need that does not work in Wine. The main computer will have to stay XP. I cannot get my wifes computer to connect to the main system, although mine connects just fine. I dont know what the problem is. Her computer sees the network, but when trying to connect, it times out and says unable to connect.
View 2 Replies
View Related
Jun 7, 2010
i want to find ip address of other computer which are connected in LAN..suppose ther are 5 compter in LAN and i want to find ip of all remaining 4 computer using my computer only in command or any other way is ther....
View 4 Replies
View Related
Jan 14, 2010
i am using awk to display my information in a certain order.
Database :
Code:
Persia:42:John
France:50:Mabel
Persia:50:Rach
Germany:60:John
My expected output is :
Code:
Title Price Author
Persia 42 John
France 50 Mabel
[code]....
I tried using cut command but it also gives me the same problem. If i do not assign it to a variable, how am i able to format it to display it in the correct format?
View 4 Replies
View Related
Sep 26, 2010
I would like to make program that reads a *.TXT file and searches for last line and constatly refreshing the search. So last line would look something like this:Mike Had A 100.0 Pound Shark.So there are multplie category of "fish"(Shark, Dolphin, etc.) and each of them have allowed weight (ie. minimum 70.0 Pound Shark, 50.0 Pound Dolphin). If in the found sentence Shark or Dolphin doesn't meet requierments than program named False.exe should be started. I dont know how to make it my self so any help is much appreciated. My knowledge on programming is very low but I'm opend for learning.
View 1 Replies
View Related
Mar 2, 2010
when compiling a c++ program in g++ on Linux, how can I add version information to that executable and if possible is there a Linux utility to read the version information?
View 2 Replies
View Related
Jan 8, 2011
I'm writing a Plug-gable authentication module for ssh. I am looking for prompting for some extra information after user name and password verification but before giving access to user.Actually after SSH I want to extend the same for some other services. So I am looking at some PAM module level suggestion.
I tried using conversation method with message style=PAM_PROMPT_ECO_ON but it results in PAM_CONV_ERR and conversation fails. Is it right way to interact or please suggest me If I'm doing wrong somewhere. When I use message style=PAM_PROMPT_ECO_OFF communication succeeds but message is not shown and interaction doesn't happen.
I've pased the sample code I've written at url.
Code:
#include <sys/types.h>
#include <string.h>
#include <pwd.h>
#include <grp.h>
#include <syslog.h>
code....
View 3 Replies
View Related
Jun 3, 2010
Can anybody tell me how to display the complete hardware information (hardware profile)
of my computer system? I use Gnome.
View 5 Replies
View Related
Mar 15, 2010
I have a successfully connected VPN connection. When hovering on the networkmanager applet it show beside the wireless connection also the connected VPN. The icon also changed from staircase-bar to staircase-bar with forelock. Oh yeah I'm using GNOME desktop.However when right-clicking on it and choose Connection Information I can only found tab for the wireless connection. How can I have the information tab also for the VPN connection, showing like IP address and gateway used?
View 1 Replies
View Related
Jun 28, 2011
Since OS 11.4 I don't get information about my disks any more.
I only get
hrStorageDescr.1 = STRING: Physical memory
hrStorageDescr.3 = STRING: Virtual memory
hrStorageDescr.6 = STRING: Memory buffers
hrStorageDescr.7 = STRING: Cached memory
hrStorageDescr.10 = STRING: Swap space
hrStorageDescr.33 = STRING: /dev/shm
...
But I cannot find the disk (disk / 5%)
hrStorageDescr.31 = STRING: /
...
View 3 Replies
View Related
Sep 18, 2010
How do I get rid of the information that Ubuntu stores for connecting to wireless networks?
I'm asking because I have two wireless networks nearby: my personal network and my school's network. I tried one time to connect to the school's network using the standard prompts but none of them worked - however I could connect to my personal network just fine. The problem is that Ubuntu remembered the incorrect information I entered for my school's network and keeps trying to connect to it.
It's annoying because whenever I'm in range of both networks I keep having to manually tell it to stop connecting to my school's network and to connect to my personal one instead.
View 2 Replies
View Related
May 17, 2010
How do you setup Secondary or Slave Servers in NIS? Will the domain of the slave server be the same as the Master Server?
View 1 Replies
View Related
May 10, 2011
How can I know what number descriptor is used by my usb device indicate via libusb_device_handle structure ? I can't find declaration of libusb_device_handle structure. I need this information to use poll() function where I need decripttion number of device.
View 1 Replies
View Related
May 10, 2011
How can I know what number descriptor is used by my usb device indicate via libusb_device_handle structure ? I can't find declaration of libusb_device_handle structure. I need this information to use poll() function where I need decripttion number of device.
View 4 Replies
View Related
Oct 24, 2010
I have a file which has the output as shown below:
Code:
Teams | matches |Goals | YC | RC
------------------------------------------------------------------------------
Liverpool: | | | |
Gerrard | 97 | 100 | 41665 | 1342
[code]....
I need to extract the Info from the RC column for the first 4 players of liverpool. The test code i have does the same,but can anyone show me a better way of doing it.I could do it easily with gawk -F"|" and print the respective column,but i need to do this in perl.
Code:
#!/usr/bin/perl
use strict;
use warnings;
[code]....
View 7 Replies
View Related
Jan 2, 2010
I wonder if there is any chance to read the last time when the actually logged user have changed the mouse cursor and stroke the key.
View 3 Replies
View Related
May 1, 2011
Where can I the information about the NUMA architecture supports in Linux
View 3 Replies
View Related
Apr 15, 2010
I dont have under system->admin networking, but i do have netwroking tools (I have the latest version of ubuntu) and I am wondering - what command can i type in to the terminal to see the dns information? also can I install "network" for ubuntu?
View 1 Replies
View Related
Apr 9, 2009
I have a network connection between 3 computers sharing the same net bandwidth with the same router (modem), I wanted to know how much every one of this network taking from the bandwidth, I want an easy program like switch-sniffer (see the pic) to scan the network and tell me how much every one taking from this network in real time.
View 14 Replies
View Related
Jun 22, 2009
I have to fetch the information present in MIB of network agent.. i dont how to strat my program. pls text one sample program.
View 3 Replies
View Related
Jul 22, 2011
OS: CentOS 5.6 yesterday i bought a new HP network printer/scanner (OfficeJet Pro 8500). It installed correctly using hplip drivers. I can print and scan without any problem, very nice and fast device. I did some research where the information where the device port is stored in sane, but cannot find anything. I tried to remove my old network device port for my Brother scanner, but did not find the config file where this information is stored. Neither /etc/sane.d/* nor ~/.sane/xsane/* contains this information.
View 14 Replies
View Related
Oct 8, 2014
Suppose I have the library code in library.cpp. I found that to include the version information in the .so library, I had to use these command forms:
Code: Select allg++ -Wall -fPIC -c library.cpp
g++ -shared -Wl,-soname,library.so.0 -o liblibrary.so.0.1
The howto then continued to recommend creating symbolic links pointing at the newly compiled library. [URL] ....
The result is, during the booting sequence, I am receiving this error:
Code: Select alllibsystemd-login.so.1: no version information available (required by /usr/bin/dbus-daemon).
The library is the one I am working on.
View 5 Replies
View Related