General :: Real Time File Creation In Terminal?
Aug 2, 2010
I was wondering if there is a command to show a real-time creation of files. I basically executed a command that will created thousands of files and takes a long time. I want to check if it is still creating additional files or if ti got frozen.
View 3 Replies
ADVERTISEMENT
Jan 13, 2010
I want to have a terminal open and have something like a "repeating cat" command running in it for a certain text file (in particular /var/log/system.log). So my terminal will scan or cat the text file every so often or whenever the text file system.log gets written to by the system, it will display whatever it wrote to the file in my terminal that is open.
View 2 Replies
View Related
Nov 23, 2010
I want to extract the file creation time. How to get it. I am using fedora core 4
View 3 Replies
View Related
Nov 19, 2010
How I can tell tar to assign a new creation date to extracted files? Let's say I have an archive filled with old files of varying ages. Upon extraction I want all files to have the same time stamp (that of the time of the extraction).
View 1 Replies
View Related
Jan 3, 2011
I have a log file that I would like to examine during some changes under process that writes to this log.
Is there some way to open this file and read in real time changes written to it ?
View 5 Replies
View Related
May 27, 2010
I know this command exists I just can't seem to find it. I want to see the last few lines of a file as more are added in real time. Can someone point me in the right direction?
View 2 Replies
View Related
Jul 15, 2010
I have a few servers that are exposed to the internet. When someone tried to brute force hack in to the ssh, ossec adds their IP to the hosts.deny. Then the hacker (read: script kiddie) moves to the next IP up the line and hits my next server, etc, etc.
I end up getting 20 emails for all the servers that they hit.
My question, is there anyway to sync the hosts.deny file across multiple servers so that if they are locked out of one, they are locked out of all?
View 3 Replies
View Related
Jun 19, 2011
Under a Linux shell, how can I change the creation time of all a folder's files to the current time?
View 2 Replies
View Related
Jun 14, 2010
I know newer filesystems support crtime values, even to nanoseconds granularity. Ext4 does it, and NTFS mounted via ntfs-3g should expose it. Still, what is the command to get these values??
getfattr -d <some file>
gives me zero results, and as far as I know ls does not have means to access creation time.
getfattr -n ntfs_crtime /mnt/<some ntfs fs> gives me "Operation not opermitted"..?
I know about the difference between ctime=inode change time and crtime=creation time/file birth time. I want to migrate a NTFS partition to Ext4 without losing the creation dates...
View 10 Replies
View Related
Mar 23, 2010
what the recommended way to set up real-time (or near real-time) folder synchronization among 2+ servers. I looked a rsync but that doesn't sound real-time and it looks like its something that you might put in a cron once an hour.
View 1 Replies
View Related
Nov 22, 2009
this idea to me right now seems stupid and impractical so I'm also looking for solutions outside of this one. I'm creating a set of highly available servers. They currently utilize pacemaker to manage a shared IP address, apache management, mysql management and also drbd handling. They currently replicate, properly failover and run fine. However, this is a shared web hosting setup and everytime a new user is added to the system a username and password is created and the httpd.conf file is updated for their site. I need a way to replicate those changes to the other server. For httpd.conf I'm pretty sure I can just stick it on the apache drbd resource and create a symbolic link. However, for the passwd and shadow files that is not a realistic solution.
View 1 Replies
View Related
Sep 30, 2010
How can we write a file and display in terminal at the same time. Like for example, when I do..
php -f file.php > testfile
That should save right.. but I want to display it in terminal otherwise.
View 4 Replies
View Related
Jul 1, 2010
I am using:
user@unknown:~$ sudo command -option > log
to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible?
I am using ubuntu 10.04 lts.
View 3 Replies
View Related
Dec 7, 2009
I've got the following problem:
1. I start two bash windows
2. In one of them I start a script test1:
Code:
This script puts a natural number 5 times a second.
3. Then in the second bash window I type (as root):
Code:
The script test2 looks as follows:
Code:
While true; do
true;
done
During the following 15 seconds test2 is the process with the highest real-time priority. As far as I know the script doesn't perform any system calls so it shouldn't be suspended even for a minimal timeslice. My question is: why the process test1 manages to put a few numbers on the screen before test2 stops. I thought that test2 would exclusivly own the processor for 15 seconds.
View 8 Replies
View Related
Jan 17, 2011
I have to write one Shell script where i have to find one word in current generated log.Log name has specific format like 'NAME_DDMMYY_HHMMSS'.log.Each time i have to go and check the word in newly generated log.How can i pass the newly generated log name in my Script?
View 2 Replies
View Related
Jul 24, 2011
I am looking for web base real time iftop like tool for linux.I mean it shows current active connection on a NIC of any Client that connected to it .I do not want offline data I want realtime data for current connections on web.
View 2 Replies
View Related
Feb 18, 2011
kernel 2.6.21.5, Slackware 12.0 How can I obtain real time information about disk activity (processes transfering data to/from the hard disk)?
View 3 Replies
View Related
May 18, 2010
I'd like to have a copy of a web site on my local drive. Then when I make changes to that copy, have those changes automatically updated on the site's server. Ideally I'd like to tell it to only do this for certain file types. Does anybody know of a way to do this with Linux?
View 2 Replies
View Related
Sep 8, 2010
install Xenomai on real-time kernel (With PREEMPT_RT)?
View 1 Replies
View Related
Mar 21, 2010
I'm trying to check my server's bandwidth usage in real time, installed the following programs but none worked so far.
Iptraf - No results even when using iptraf -u
Tcptrack - Error : pcap_loop: cooked-mode frame doesn't have room for sll header
Iftop - No results, everything 0b
Are there any programs that displays bandwidth usage in real time and actually works on VPSes? Or getting real time bandwidth usage on a VPS is simply impossible?
View 5 Replies
View Related
Aug 4, 2009
I am hosting two Virtual Servers both running Centos 5.3 on a host machine also running the same OS. The VM software in use is Xen, as supplied with the OS.The host machine's time and date is fine, however both Virtual Servers are running ahead of real time consitantly.Running /etc/init.d/ntpd restart will resolve the issue however one of these is running MailScanner and when the time suddenly goes backwards, sometimes by as much as an hour, it stops working properly.
View 1 Replies
View Related
Apr 3, 2011
Terminal with real time dmesg output I want to use tty12 for system messages. Is there a way to mirror all kernel messages to there?
View 2 Replies
View Related
Jan 28, 2010
What is the best way to track elapsed real-time, for the most kinds of Linux systems?
clock_gettime() looks great, but I get this build error:
undefined reference to `clock_gettime'
..even though I have #include "time.h" Here is my uber-goal:
// Returns fractional seconds that have elapsed since Start_Ticks was set.
float elapsed_seconds( unsigned Start_Ticks )
{
[code]....
View 1 Replies
View Related
Jan 28, 2010
I used the following command to get the unix time of root user creation:
Code:
awk -F":" '$1 == "root" {print $3}' /etc/shadow
How can i convert this into the date/time of creation?
I am writing a shell script, which determines the OS installation date among other stuff, and i am assuming the root user's account creation date should be a pretty accurate pointer. Are there reasons why i should not be assuming so?I would be open to other suggestion for getting this date/time, but it would nevertheless be interesting to convert the unix time to "real" time without doing complex manual(or otherwise) computation..
View 4 Replies
View Related
Jul 6, 2011
In regards to compiling a custom kernel:
When using make menuconfig - under Device Drivers --> Character Devices --> there should be an option with the label "Enhanced Real Time Clock Support" (CONFIG_JS_RTC).
The problem is that this option seems to only show up while using the menu method when other options are either enabled or disabled and I've entirely forgotten what should be what. I swear fingered it out once.
This is on an older computer (P4) so HPET is no good.
You would think that disabling the HPET option would enable the RTC option but that does not appear to be the case.
I understand I can just add the option to the .config file and avoid this hassle but I'm very interested to know how to make this work.
To show my appreciation I will do something nice for you such as call you a nice name or tell you that you are pretty (or ugly if that's what you prefer).
View 1 Replies
View Related
Apr 5, 2011
I keep creating practice perl scripts in a linux directory using vi <filename> and need to chmod 751 <filename> before I can run it as I wish to. I'm sure there is a simple way to default my permissions or config them at creation, but I'm not familiar with it ayuda me por favor.
View 2 Replies
View Related
Apr 7, 2010
I want to add some starting information in a file while creation. like if I type vi test.sh
then
#!/bin/bash
will be added automatically.
Somebosy suggest me how to do this ??
View 22 Replies
View Related
Sep 17, 2010
I have some basic experiencing creating simple scripts/making directories/changing permissions/etc. but I'm stumped on this one.
I have two linux boxes. I have a script set up on box 'A' to SCP into box 'B', grab a copy of a database backup and store it on box 'A'. It looks like this:
scp root@X.X.X.X:/blah/blah/blah/dump.23.gz /home/blah/DB_Backups/
I have generated a public key on box 'A' and placed it into the authorized_keys file on box 'B', so a password is not required and the file copies over successfully when the script is run. On to my problem...
I need to know what date the 'dump.23.gz' file was originally created when I'm viewing it after it's been copied to box 'A'. If I ls -l on box 'A' it only shows me the date it was created on box 'A' when it was copied.
What would I need to add to my script to append the backup's original creation date on box 'B' to the filename so that when it gets copied to box 'A' I know when the backup was created on box 'B'. I'm sure this is probably confusing. I've done lots of searching and can only find information on how to append the current date and time to a file name. I need to append it's original creation timestamp to the filename when it copies over.
View 10 Replies
View Related
Feb 16, 2011
I'm just starting out with shell-scripting, but having a problem with making new text files with the touch or cat > commands.
What I've been doing is touch testfile1.txt
Also, I've tried cat > testfile1.txt (text)
Console reports "bash: text1.txt: No such file or directory. Consfusingly, it works fine in the home-directory. But if I move the file to where I want it, I can no longer view, edit, etc. it.
View 1 Replies
View Related
Apr 4, 2010
I have a text file from which i read a number of names with their lengths at the run-time.Now i want to created a char array having the length and name as already read from the text file at the run-time. There is no compilation involved. Every thing is happening at the run-time. I tried using STL like map along with malloc but i am unable to name an array at run-time. I can keep some type of mapping with previously created arrays
View 3 Replies
View Related