Server :: Log The Output Of "date" To A Particular File On Local System And NTP

Apr 6, 2011

Let's suppose there are "n" number of servers in a Linux cluster / network environment. We want to make sure that "date" on all those servers are in sync. How can we log the output of "date" to a particular file (log file, let's name it /tmp/date.log on our local system from where we are executing our command or script) run on every server one by one so that we can have a log of all the servers and their corresponding date vales in the following format:

[Code]....

View 5 Replies


ADVERTISEMENT

General :: Load The Local .csv File Into Mysql Server The Date Format Varies?

May 25, 2010

When i load the local .csv file into mysql server the date format varies.Its mis matching.How to solve and match this.

View 1 Replies View Related

General :: Store The Output Of Date And Watch Command To A File

Jun 15, 2011

I am trying to watch a command and try to log it into a file. I tried

watch -t -n 10 "(date '+TIME:%H:%M:%S'
; ps aux | grep "pattern" | wc -l)" >>
logfile

and am expecting a result like

TIME: 10:32:30 12
TIME: 10:32:40 18
TIME: 10:32:50 2

to be stored in logfile. However, when the logfile has unprintable characters in in. How do I get this kind of output from the command li

View 4 Replies View Related

General :: Get Output Of Text File Containing Account Number, Debit Amount, Credit Amount,date Using Shell Script?

Apr 9, 2011

How to get output of text file containing account number, debit amount, credit amount,date using shell script?

View 1 Replies View Related

Ubuntu :: How To Rename File To System Date In Terminal

Nov 4, 2010

is there a way in terminal to rename a file to system date?

View 2 Replies View Related

Debian Configuration :: Can't Copy A File From SMB Share To The Local File System

Aug 17, 2015

There is this bug in the latest version of Ubuntu, which is also Jessie, which is:

Can't copy a file from SMB share to the local file system: Software caused connection abort

The problem, apparently, is that newer versions of Samba hit servers with multiple requests at the same time, and for some reason the Zyxel and Iomega boxes can't handle this. The best solution they've come up with is to modify the smb.conf file on your server to include this setting: "max mux = 1".

Here is the reference material on this bug: [URL] ....

People who develop samba have fixed it in the latest version but neither the ubuntu nor Debian have released the fixed version of nautilus, as of yet. Here, is the reference: [URL] ....

View 0 Replies View Related

Programming :: Keep Original Mod Date Of A File And 'date' It Back To Same File?

Jul 12, 2010

I would really like to preserve a file's original modified date and pass it back to the file as the same attribute after a script has worked on it. I get a lot of JPEG files from different places on the Net which I either turn around and upload or burn to disk, and having the "original" date of either download or last mod in a graphics app would be for me, in the long run, a lot more helpful when deciding, for instance, which files to "recycle" or pass on backing up more than once.I've tried doing this on my own every now and then. Where I run into problems is that it appears "stat" and "date" use different formats for date information, and I can't seem to puzzle out how to "translate" one to the other satisfactorily for the latter command.

Just to give an example:
stat foo.jpg |grep Modify gives me
Modify: 2010-07-12 06:28:56.890625000 -0400

Passing that string as-is to date foo.jpg, I get the errordate: unknown option -- 0 and the usual semi-courteous suggestion to Try 'date --help' for more information.Somehow my TexInfo database got screwed up somewhere along the line and info dategives me the short article on date input formats, not the full documentation for the command

View 4 Replies View Related

CentOS 5 :: Get File Date On Other Server?

Aug 16, 2011

Is it possible to get the last modified date for one file on a remote server from command line?

View 4 Replies View Related

General :: Use Date With Touch To Create New File With Date Based Name?

Mar 12, 2010

I am using CRON to create a new, blank file, every minute, in a specific location on my web server. After web searching, and reading man pages, I get the impression that the following command is supposed to work:touch /home/mydomain/var/folder/attachments/`date +%H%M`.txtThis should give me a new file with a file name that is the current hour and minute.However, when executed, the CRON mailer reports:touch /home/mydomain/var/folder/attachments/`date +/bin/sh: -c: line 0: unexpected EOF while looking for matching /bin/sh: -c: line 1: syntax error: unexpected end of fileSo, it looks like shell is seeing the plus (+) sign as an EOFObviously, nothing get created.What would be the easiest, single line command to create an empty file, at a given location, with a time based file name

View 5 Replies View Related

Software :: Subversion On Local File System?

Jan 21, 2011

I have downloaded several service GUIs to support work with subversion; the most developed one is "kdesvn". I also tried some CVS surfaces. It is always the same problem: I cannot connect to a repository in the local file system. This is weird! The greatest use of versioning in my practice it to work local, and it should not be difficult to program streaming with local files (WinCVS allowed me to do this.)

View 5 Replies View Related

Server :: Server Status Command Output Getting Dumped To Smtp Server Instead Of A File?

May 24, 2010

I am working on linux server with below specifications.Linux EDT 2008 i686 i686 i386 GNU/LinuxWhile checking the status of the server using the command 'opmnctl status' and when server is down the output is not getting redirected to file.I m using the command as,opmnctl status > abc.txt.

View 2 Replies View Related

General :: Error /usr/local/atlas Is Read Only File System

Sep 9, 2010

I have a computer in the university and I have root access to this pc. Iam trying to install Cblas library on it. But it gives me a starnge error /usr/local/atlas is read only file system. I tried doing mount -l and it gave me that appserver1:/export/d1/Linux/doe on /usr/local type nfs4 (ro,sec=.......) I think what it means that the main server directory is mounted to /usr/local and it is read only. So, how can I fix this problem to separate the two and make my /usr/local separate

View 13 Replies View Related

Server :: Find The List Of File Being Tagged By User Jack Starting From A Given Date?

Mar 27, 2011

I need to find the list of file being tagged by user jack starting from a given date.Eg:Tag Name:lcc_dev_p1User: jackDate: >= 2011-03-02can some done tell me what is the cvs command for this.Should the below command give the correct outputcvs log -R -S -N -rlcc_dev_p1 -d">=2011-03-13" -wjack > /tmp/output.txt

View 1 Replies View Related

OpenSUSE :: Date Mask In Ls -l Output

May 18, 2011

I just installed a OpenSuse 11.4 box. Now when I do a 'ls -l' I see the date format different than on all my other boxes even though I have identical regional settings. Is there a way (env var) to control this behaviour ?

View 6 Replies View Related

Ubuntu Servers :: Disc Mirroring Between Local And Remote File System

Nov 5, 2010

Is there any software that will do full mirroring between a local and a remote file system. I have a server (9.04) and a laptop (9.10). Each user has shared a shared directory on the server, and on the laptop. Updates to files may be done on either system. I want to keep both copies syncronised. Currently I use a script based on rsync (scheduled by cron) to keep the local and remote copies in sync.

The problem with this approach is that rsync only seems to be able to handle deletion of files if one file system is the master, which is not the case in my set-up. If I move a file to a different directory, rsync will reinstate the old file as well as copying the new one. I was hoping there was some software that could do proper mirroring between the 2 systems, but6 so far I cannot find anything.

View 3 Replies View Related

General :: Pipe The Output Of Date Command?

Jul 21, 2011

I need to pipe the output of date command, to form a command like this:

mycommand -f 20110721

where 20110721 is current YearMonthDay.

View 1 Replies View Related

Programming :: Detecting Newly Created Folders / Files On Local File System?

Apr 16, 2010

Using C++, I want to process sub-folders on my home folder sequentially each with a special naming format and containing some binary files in it:

Code:
1/
2/
3/
4/
5/
6/
...

Give above folders, I will process files in 1/ at first, 2/ at second, 3/ at third, and so on.

For some n/ folder, if I realize that n/ actually does not exist in local file system, I do not want to wait for it. Hence I will keep processing (n+1)/ folder, and so on.

However, when processing some (n+m)/ folder, previously not processed n/ folder may have been created on local file system. In this case, I do not want to miss processing it, but somehow detect its creation and process it. After processing n/ folder, I want to continue from (n+m+1)/.

View 5 Replies View Related

General :: Install Samba Server On System From My Local Pc?

Jan 5, 2010

I have been given a task to install samba server from my local PC in an another PC which is a linux server.The linux server is in my own comapny and i have been given its ip address and root login password.I dont know how to install that samba server from my own PC.

View 9 Replies View Related

General :: Identify File System Type From The Output Of Fdisk Command?

Nov 16, 2010

The output of my fdisk command is as follows :-zodiac@gml-admin:~$ sudo fdisk -l[sudo] password for zodiac: Disk /dev/sda: 160.0 GB, 160041885696 bytes255 heads, 63sectors/track, 19457 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe30ce30c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1958 15727603+ 7 HPFS/NTFS
/dev/sda2 1959 4752 22437838 f W95 Ext'd (LBA)

[code]...

View 2 Replies View Related

Slackware :: Using Rsync To Keep Local Copy Of Stable Tree Up To Date

May 14, 2011

when I installed 13.37 I created a local copy of the entire stable tree (source/ and all the rest) just to have all that stuff around to browse offline.

Now, to instruct myself, I'm trying to use rsync to keep this stuff up to date. But I seem either to have misread the rsync man page or ... well, I don't know. I am issuing the following command and getting the results seen below:

Code:

View 3 Replies View Related

General :: Pass Multiline Output Of A Command Into 'date -j'

Mar 3, 2011

I am doing some NSCA log parsing and I want to get an output like this:

2011-Feb-18:11:00:07
2011-Feb-18:11:00:07
2011-Feb-18:11:00:07
2011-Feb-18:11:00:08
2011-Feb-18:11:00:08

[Code]....

I have tried this, but it treats the entire output as a single line, then plops a timestamp on the end (I think):

Code:

sort -b -k4.9,4.12 -k4.5b,4.7Mb -k4.2,4.3 -k4.14,4 foo.log| date -j -f "%Y-%b-%d:%T" "+%s" "`awk -F '[ [/:]' '{print $7"-"$6"-"$5":"$8":"$9":"$10}'`"

View 1 Replies View Related

General :: Pass Multiline Output Of A Command Into 'date?

Mar 3, 2011

I am doing some NSCA log parsing and I want to get an output like this:

2011-Feb-18:11:00:07
2011-Feb-18:11:00:07
2011-Feb-18:11:00:07

[code]...

View 6 Replies View Related

Software :: Getting Date Command To Output In Format 08-Dec-2010?

Dec 8, 2010

How can format the date command to output the following format 08-Dec-2010.

View 3 Replies View Related

Ubuntu Servers :: HP Deskjet - Lp Output Three Lines Only (NOT Header Or Date)

Jan 13, 2011

10.10 Headless Server, CUPS queuing to HP Deskjet via socket correctly (?), but output regardless of file type only top three lines (NOT header or date or so)

View 1 Replies View Related

Programming :: Split Mysql Date Query Or Hide Some Output?

Feb 22, 2011

So I've got a rather vast database, one of the columns is date in the following format: DD/MM/YY HH:MM:SS. This is starting to cause problems with a php page I'm writing which asks the user for a 'start date'. Would it be better for me to split the date column into date and say time? Or is there a way of using distinct and masking the times.

View 10 Replies View Related

CentOS 5 :: Send An Email To A Local Mail Server For System Monitoring

Dec 27, 2009

I have a CentOS 5.4 nas box that I want to monitor.

I believe I can setup mdadm to mail me when there are issues by addin the following line to /etc/mdadm.cong Quote:MAILADDR root

View 1 Replies View Related

General :: Access File On Different Server From Local?

Nov 19, 2010

I have a file 'my_file.txt' stored on 'myserver1.col.edu' Now, I am using a different server 'myserver2.col.edu' to do some work and I want to access 'my_file.txt' on 'myserver1.col.edu' to read (possibly edit) WITHOUT physically copying the entire file across. Is there a way to do this - perhaps through ssh?

View 2 Replies View Related

General :: Make User In Remote LDAP Server To Be Used To Authenticate Local System?

May 13, 2010

How can I make the user in remote LDAP server to be used to authenticate Local Linux server ?

View 5 Replies View Related

Server :: NFS Large File Copies Fail - Error Writing To File: Input/output Error?

Jun 27, 2009

I recently upgraded my file/media server to Fedora 11. After doing so, I can no longer copy large files to the server. The files begin to transfer, but typically after about 1gb of the file has transferred, the transfer stalls and ultimately fails with the message:

"Error writing to file: Input/output error"

I've run out of ideas as to what could cause this problem. I have tried the following:

1. Different NFS versions: NFS3 and NFS4
2. Tried copying the files to different physical drives on the server.
3. Tried copying the files from different physical drives on the client.
4. Tried different rsize and wsize block sizes when mounting the NFS share
5. Tried copying the files via a different protocol. SSH in this case. The file transfers are always successful when I use SSH.

Regardless of what I do, the result is the same. The file transfers always fail after approximately 1gb.

Some other notes.

1. Both the client and the server are running Fedora 11 kernel 2.6.29.5-191.fc11.x86_64

I am out of ideas. Has anyone else experienced something similar?

View 13 Replies View Related

Ubuntu Servers :: Setup A File Server For Local Network?

Aug 15, 2010

I'm trying to setup a NAS for my network, the only problem is that I can't figure out how to do it. On my network I have about 3 computers however only I only use 2 of them so I thought that maybe I could use the third computer in such a way that I could access it 24/7 from the internet as a server for all of my files (school papers, music etc etc...). The only problem is that I don't know where to get started. Both of the computers I'm currently using are Windows and the one that I,hopefully, can turn into a server is running on Ubuntu.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved