General :: How Does Tee Command Implemented
Nov 4, 2010
I am trying to understand how the tee command implemented.I need to use tee command in high speed logging application. where stdout and stderr has to be redirected to a file. here i am concerned about the performance. Is tee redirect the data character by character or by buffer?
View 1 Replies
ADVERTISEMENT
Aug 5, 2010
I tried defining CLOCK_MONOTONIC_RAW in the include file. The timer does not run correctly.I am looking for a timer that I can count on to get a time delta.In my /usr/include/bits/time.h I have CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID defined. I assume they are not based on the realtime clock (not changed when time is updated. All I really need is a way to determine delta time when running. mili-seconds would be great, 1/100th second is preferred, and 1/10th would be acceptable.
___( Original Post )___________________
"A tick, a tick, my kingdom for a tick."
Please have patience and read on. This is a rather convoluted situation.The company currently does (since 1994) a loop cycle based task execution process. They tasked me to run a particular task at a particular interval. This is where I found the loop process and how much time delta time there can be.I want to implement a time based version. Nothing really drastic, just call the task when the timer says so. I know how I want to do it, they just keep throwing roadblocks in the way.The latest one is "what if someone changes the time ?". I looked on the web and my research seems to indicate that if I use clock_gettime(CLOCK_REALTIME,&ts) that indeed delta time can be messed up if something tinkers with the time.
The other option is to use CLOCK_MONOTONIC_RAW instead of CLOCK_REALTIME. It is indicated that this can not be changed and would be good for this type of application. The problem is I don't know if it is implemented in the version the company distributes, Red Hat Linux Release 7.2 (Enigma). Anyone know anything about this?Again, the company distributes it's product that runs on Red Hat 7.2. They have many units in the field. I read on the web that 1) There is no tick and 2) Red Hat 6 has the CLOCK_MONOTONIC_RAW implemented. Well, I looked at /usr/include/bits/time.h and found CLOCK_REALTIME but not CLOCK_MONOTONIC_RAW.
View 1 Replies
View Related
Mar 9, 2010
How to find whether raid is implemented or not ,without asking Linux Admin.
View 4 Replies
View Related
Aug 22, 2011
I'm curious how file association management is implemented in Linux. Where is the related information stored? How do I modify it (I'm interested in non-KDE-based ways; I know there's a system configuration page for that in KDE)?
View 2 Replies
View Related
May 10, 2010
A more comprehensive phrased question since I lost access to the other one.I would ask that the other one be deleted, not this one, as it should not have been migrated in the first place.There are currently two NTFS drivers available for Linux.
The NTFS driver included in the kernel, and the userspace NTFS-3G driver that makes use of FUSE.By all accounts, NTFS-3G works perfectly.My question then, is if the NTFS filesystem has been successfully reverse engineered, why have the kernel NTFS team not implemented the changes in their driver? At the moment it is still marked as experimental, and there is a good chance it will destroy your data.
View 2 Replies
View Related
Apr 17, 2009
From time to time, new characters are added to the unicode standard.For instance, in 2008 a capital sharp s (upper case form of German eszett)was added at position 0x1e9e.What actions need to be taken in order to make the new character part of the various fonts we use on our desktops?
View 1 Replies
View Related
Apr 17, 2010
Ubunto is new to me when I try to play a movie I get the message, "no URI handler implemented for dvd".
View 1 Replies
View Related
Mar 25, 2010
Can RAID be implemented on a single hard disk ? If yes, plz give a link for it.
View 2 Replies
View Related
Nov 15, 2010
I can print very well over a USB cable, however I'm having trouble printing over the Internet (F13). The errors that I get are:
job-printer-state-message Unable to get printer status (Not Implemented!)
job-printer-state-reasons [u'none']
Printer status usually shows up as OK until I actually start to print and then I end up with an error message and nothing prints. This seems to show up with any type of printer connected to the internet.
View 1 Replies
View Related
Aug 17, 2010
let me show you my config and tell me if its ok
Its pretty simple:
eth2 -> 192.168.1.0
eth2:0 ->192.168.50.0
eth1 and eth0 are the net interfaces, 1 router each to provide wan failover (not implemented here)
Hosts:
loc1 eth2:192.168.1.0/24
loc50 eth2:192.168.50.0/24
Interfaces
net6 eth0 detect
net7 eth1 detect
- eth2 192.168.1.255,192.168.50.255
Masq
eth0 eth2
eth1 eth2
eth2 eth2
Policy
all all ACCEPT info
Rules
SECTION NEW
REJECT loc50 loc1 all
Zones
fw firewall
net6 ipv4
net7 ipv4
loc1 ipv4
loc50 ipv4
Problems / Doubs:
1) Is the hosts file required?
2) I guess I need doing masq from local to each external, and also from local to local even if they share the same interface, hence the eth2 eth2 in the masq file...
3) So is shorewall well implemented in these scripts to handle aliases?
View 2 Replies
View Related
Aug 17, 2010
I am now at my 6th version of my opensuse build and I can't get it to start the graphical login.I am trying my build out on a VirtualBox using the live cd.This is what happens during installation :It will install properly. No error messages at all. I get the (graphical) options screen to select language and screen resolution settings, so far so good.I select the default (top) installation for my opensuse and hit enter.Then I will get the verbose progress and when it's finished, the verbose will ask me for my user name and password.Then I enter those correctly and the verbose will tell me to enjoy.I am then left with a blinking cursor, and don't know what to do next.
This is not what should have happened since in my build I had selected Configuration > Startup > Default runlevel > 5: Graphical loginI can find no reason for this failure since on my Windows system I have tried out several other Linux systems in the same way and never experienced this problem before.During the assembling of my packages I have payed close attention to select all packages required for a graphical login.An other problem is that although I selected the default language for my build to be Dutch, the default language during setup is still English.I hope there is someone who would be kind enough to be prepared to help me out, I am so eager to start trying out my self made OS.
View 1 Replies
View Related
Feb 17, 2011
share the implemented "c" program for scanning the available wireless network.
View 2 Replies
View Related
Jan 28, 2010
my computer doesn't get the internet, so I've tried to download what earlier threads write as the solution on another computer, but the other computer isn't linux, and it says that it doesn't recognize the file extension. Is there any way to download the "ubuntu-restricted-extras" thingy without it immediately trying to install?
(I have ubuntu 9.1, on a thinkpad t22(i think))
View 1 Replies
View Related
Apr 13, 2011
I have built a module to load it on a UML instance running a different kernel from the one I'm running on the host host. I have built the module against the headers for the kernel I'm using on the guest but when I try to insmod the module (on the guest, of course), I get a "function not implemented" message.Can insmod be a little more verbose about the function that is not implemented? I tried running strace on the insmod but the error comes from init_module so not much more information is available:
Code:
open("r5r.ko", O_RDONLY) = 3
read(3,
[code]...
View 7 Replies
View Related
Apr 12, 2011
We're setting up an OpenVPN access server, a quite straight-forward and very customizable system. Only we have a problem, I guess caused by Apache, when we try to reach the client web server via a custom port (see screenshot in attachement) we get the following error: Code: 501 Not Implemented. The requested method is not implemented by this server. Although we have added on the cisco router a port forwarding for port number 9943. It is working when we access the website : port with the local IP address [URL]...
View 2 Replies
View Related
Apr 12, 2010
I'm sure this is a simple problem, however I am a newly reformed microsoft user (and it feels great).
When I try to watch wmv streams I get the error: No URI handler implemented for "mmsh".
View 2 Replies
View Related
Mar 26, 2011
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
My system:
Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2
View 5 Replies
View Related
Jul 3, 2009
I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?
View 4 Replies
View Related
Apr 30, 2011
I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found
path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found
Can someone point me in the right direction
View 1 Replies
View Related
Jul 21, 2010
I want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command by finding the most recent commmand having the same first few characters.
View 1 Replies
View Related
Jun 7, 2010
Bash's command history is great, especially it is useful when adding the history -a command to the COMMAND_PROMPT.However, I'm wondering if there is a way to log the commands to a file as soon as the Return key is pressed, e.g. before starting the command and not on completion of the command (using the COMMAND_PROMPT option would save the command once the prompt is there again).
I read about auditing programs like snoopy and session recorder like script but I thought they're already too complex for the simple question I have. I guess that deactivating that script logs all the output of the command would lead already in the right direction but isn't there a quicker way to solve that probelm?
View 1 Replies
View Related
Apr 14, 2011
When you run the following cp command in the BASH terminal, how does Linux know which files are the source and which are the destination when copying multiple files from one location to another?How does Linux know that the services, motd, fstab, and hosts files are the source and the /home/fred/my_dir is the destination?This question came up in a Linux class and I was not sure of the answer. I was thinking it is based on the source path entered ending with a file path and the destination being a directory, but was not sure.
View 4 Replies
View Related
Nov 20, 2009
i'm trying to redirect the output of a command to the input of the next command. not sure if i'm going about this the right way. an easy method would be just to store the output of the previous command in a file and redirect input to read that file, but i'm curious to see if this can be done without writing to any files.
View 9 Replies
View Related
Mar 20, 2011
Possible Duplicate: What does this cryptic bash command mean? Why this command crashes Linux? :(){ :|:& };:
View 4 Replies
View Related
May 9, 2011
Up until now I've been using plink to remotely compile a project I'm working on. But recently the administrator from the remote server updated the distribution and messed up some configurations. My project has a lot of scripts written for tc shell (tcsh), and now the default shell is bash. There is no way to change this. Another problem is that now I need to run newgrp to change my default user group.
So... to work around this problem I've changed my .bashrc to run newgrp and then tcsh. If I do a normal connection using SSH, everything works as expected, but when using plink, or SSH to remotely execute commands, the shell gets stuck on the newgrp command. I think it's because both applications need a return value from newgrp to send the command I need to execute. Remotely running scripts that call a shell also get stuck like newgrp (newgrp also opens a new shell and that's why it gets stuck) my .bashrc is as follows:
Code:
user_grp=`id -g`
if [ $user_grp != 4919 ]; then
newgrp new_group_id
else
[code]....
View 4 Replies
View Related
Apr 4, 2011
i want in the website they ask to enter some input.Code:echo -e "<p>Please Enter Year : c</p> "read Yearif i use this command it will ask the user to enter year in command. but what i want is they ask the user to enter year in web browser.
View 14 Replies
View Related
Apr 29, 2010
i want to disable the su command on a server so that users cant run the su command i removed the comment from the 3 and 5 line in /etc/pam.d/su file but it doesnt seem to work the file is shown below
#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
[code]....
View 8 Replies
View Related
May 31, 2010
What's the command to delete bash command history?
View 4 Replies
View Related
Aug 19, 2009
I have a script which builds a project and then runs junit tests. However, if the build fails, the junit tests fail with the same error message.Therefore the command which runs the junit tests should only be executed if the build was successful.
View 3 Replies
View Related
Jul 2, 2011
I want to run gsettings list-schemas (which return a list of about 100 names separated by spaces)and somehow direct each name one at a time as the input to this command:gsettings list-recursivelyI've tried it with awk, and standard | piping and also as a string variable strvar=$(gsettings list-schemas) and using the $strvar as the input butam missing something in between I'm sure like for - while or proper syntax of awk etc
View 3 Replies
View Related