i have done this code but am not sure how to send it to a txt file
for i in `w -h | awk '{ print $1 }'| sort | uniq`; do
n=`w -h $i | wc -l`
printf "$i:$n\n"
thanks any help would be great (5 Replies)
Hi Gurus,
I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file.
eg. if file a.txt exists then send a mail to a@a.com
simillary for b.txt,c.txt etc.
Thanks for your help,
Nimu (6 Replies)
Dear Experts,
please help i am very much confused here and not getting the right path,
actually i want to send a file from client to a server,
initially i used mmap() which is failing most of the time so i want to use general IO streams to do that,
i can open a file in "rb" mode
and read... (1 Reply)
hi all
i have a view in the database with columns
prod_no,prod_nm, prod_code
using a shell script i should query this view and dump the data in a delimited flat file and send to another ftp server....
i also have to schedule this periodically using cron tab.
can you... (2 Replies)
Hi all,
I'm trying to send a file to a remote host on a DG/UX system connected directly to a serial port of a computer, but every time I try to send the file, the remote host cannot recieve it (the download screen hangs, some wierd characters are displayed when I type the rz command).
I tried... (1 Reply)
Hi,
I'm suppose to upload a file to my company's client server. I used kftp grabber in my PCLinuxOS to do the file transfer.
The client has given a username and password to upload the file in their server. When I log in to the server, I cannot access root or home directory, nor can I access... (1 Reply)
We have an issue here:
The libc.so.6 file (link) is corrupted and it causes the system unbootable. It even doesn't boot to single user mode. How can we boot the system to fix the library file? Or is there any other solutions for this issue?
Here are some boot messages:... (6 Replies)
Discussion started by: aixlover
6 Replies
LEARN ABOUT DEBIAN
ifdata
ifdata(1)ifdata(1)NAME
ifdata - get network interface info without parsing ifconfig output
SYNOPSIS
ifdata [options] {iface}
DESCRIPTION
ifdata can be used to check for the existence of a network interface, or to get information abut the interface, such as its IP address. Un-
like ifconfig or ip, ifdata has simple to parse output that is designed to be easily used by a shell script.
OPTIONS -h Print out a help summary.
-e Test to see if the interface exists, exit nonzero if it does not.
-p Prints out the whole configuration of the interface.
-pe Prints "yes" or "no" if the interface exists or not.
-pa Prints the IPv4 address of the interface.
-pn Prints the netmask of the interface.
-pN Prints the network address of the interface.
-pb Prints the broadcast address of the interface.
-pm Prints the MTU of the interface.
Following options are Linux only.
-ph Prints the hardware address of the interface.
-pf Prints the flags of the interface.
-si Prints out all the input statistics of the interface.
-sip Prints the number of input packets.
-sib Prints the number of input bytes.
-sie Prints the number of input errors.
-sid Prints the number of dropped input packets.
-sif Prints the number of input fifo overruns.
-sic Print the number of compressed input packets.
-sim Prints the number of input multicast packets.
-so Prints out all the output statistics of the interface.
-sop Prints the number of output packets.
-sob Prints the number of output bytes.
-soe Prints the number of output errors.
-sod Prints the number of dropped output packets.
-sof Prints the number of output fifo overruns.
-sox Print the number of output collisions.
-soc Prints the number of output carrier losses.
-som Prints the number of output multicast packets.
-bips Prints the number of bytes of incoming traffic measured in one second.
-bops Prints the number of bytes of outgoing traffic measured in one second.
AUTHOR
Benjamin BAYART
2006-03-07 ifdata(1)