10 More Discussions You Might Find Interesting
1. Red Hat
Dear All,
I have a RHEL 5 server of 64 bit . I have disabled the firewalls and added the name server also in resolv.conf.
I want to connect to internet inorder to link the machine with Linux Network.
# I could not connect to any website from this server for ex
ping google.com is not... (8 Replies)
Discussion started by: jegaraman
8 Replies
2. Solaris
Hey guys can anyone explain to me how to share my laptops (on ubuntu with wifi) to my sunfire v100 thats connected via ethernet? Whats the process for that? I'd appreciate it! Thanks (1 Reply)
Discussion started by: austinramsay
1 Replies
3. Solaris
I have a laptop running on ubuntu 13 connected to wifi. My sunfire v100 is connected to my laptop with an ethernet cable of course. I tried messing around with it seeing if I could do it myself but I couldn't. I want my solaris box to use the internet off my laptop. How would I do this? I'm just... (2 Replies)
Discussion started by: austinramsay
2 Replies
4. IP Networking
hi i have linux server connected to internet through a switch/router. i have opened a port on the router and i am able to connect to the server if iptables is off. but when it is on i cant.
i want to create a rule in iptables so that it accepts packets coming from a particular datacard. it... (7 Replies)
Discussion started by: u.n.i.x
7 Replies
5. IP Networking
:(:confused: i am going to ask a silly question. is it possible to setup a unix server at home. once i have setup successfully, can i provide access to that server via internet. i do not have any commercial intent, behind this. (3 Replies)
Discussion started by: sudhiroracle
3 Replies
6. Solaris
Hi all.
I have one Sun Server T2000, then i want to running DNS service in that.
So I don't know what's cPanel program which can help me manage my DNS server.
Webmin is included in Solaris 10 - but i think that it's not enough flexible for my management.
Anyone can help me.
... (2 Replies)
Discussion started by: quan0509
2 Replies
7. IP Networking
Other than security does having a separate linux box
for the intranet server and a separate one for
intranet gateway effect the speed of the internet
connection.
We have our server and gateway on
40GB HD
256 MB RAM
1.5 GHz Intel P3
Can the server/gateway be configured for better speed?... (1 Reply)
Discussion started by: ramyar
1 Replies
8. UNIX for Dummies Questions & Answers
Hello,
Corrently we are useing winproxy to use internet. my client desktops connects to winproxy using tcpip and get the access, now we have changed windows opreating system to linux 7.1. my problem is i am able to connect internet on linux machine but now i wants all clients connect to linux... (2 Replies)
Discussion started by: twadkar
2 Replies
9. UNIX for Dummies Questions & Answers
I would like to turn my computer into an internet server so as to have my domain names (myname.com's) point to my home computer. Can I download unix from sun.com and do this with that os?
Also What is apache, ( I'm new to unix and server things) Is this needed to turn my computer into a server.... (4 Replies)
Discussion started by: gparsons70
4 Replies
10. UNIX for Dummies Questions & Answers
I just moved away from a T3 line back to a dial up I just wanted to know would a P200 with 64meg and a 4 gig hard drive be ok for a linux server for an additional 3 pcs all running win98. I will be dialing into an isp using a 56k v90 modem.
Any support or help will be great. (3 Replies)
Discussion started by: izrailov
3 Replies
seek(n) Tcl Built-In Commands seek(n)
__________________________________________________________________________________________________________________________________________________
NAME
seek - Change the access position for an open channel
SYNOPSIS
seek channelId offset ?origin?
_________________________________________________________________
DESCRIPTION
Changes the current access position for channelId.
ChannelId must be an identifier for an open channel such as a Tcl standard channel (stdin, stdout, or stderr), the return value from an
invocation of open or socket, or the result of a channel creation command provided by a Tcl extension.
The offset and origin arguments specify the position at which the next read or write will occur for channelId. Offset must be an integer
(which may be negative) and origin must be one of the following:
start The new access position will be offset bytes from the start of the underlying file or device.
current The new access position will be offset bytes from the current access position; a negative offset moves the access position back-
wards in the underlying file or device.
end The new access position will be offset bytes from the end of the file or device. A negative offset places the access position
before the end of file, and a positive offset places the access position after the end of file.
The origin argument defaults to start.
The command flushes all buffered output for the channel before the command returns, even if the channel is in nonblocking mode. It also
discards any buffered and unread input. This command returns an empty string. An error occurs if this command is applied to channels
whose underlying file or device does not support seeking.
Note that offset values are byte offsets, not character offsets. Both seek and tell operate in terms of bytes, not characters, unlike
read.
EXAMPLES
Read a file twice:
set f [open file.txt]
set data1 [read $f]
seek $f 0
set data2 [read $f]
close $f
# $data1 == $data2 if the file wasn't updated
Read the last 10 bytes from a file:
set f [open file.data]
# This is guaranteed to work with binary data but
# may fail with other encodings...
fconfigure $f -translation binary
seek $f -10 end
set data [read $f 10]
close $f
SEE ALSO
file(n), open(n), close(n), gets(n), tell(n), Tcl_StandardChannels(3)
KEYWORDS
access position, file, seek
Tcl 8.1 seek(n)