ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I have to handle files that come as uncompressed text files or in various archive types (.gz, .zip, .tar.gz, bz2...). I want to process their content piped to another command. Is there a tool that detects whether a file is compressed and prints it content uncompressed? The best I could find is a combination of zcat (some archive types) and cat (non-compressed files).
zacariaz wrote:However, those times does fluctuate, so I don't think it should be taken too seriously.I think it is clear if you read the thread that our intentions were not of a serious nature in testing this. I moved the relevant files (initramfs and kernel) to my ssd efi system partition and briefly tested lzop vs uncompressed. Difference was definitely negligeable, so I think
I ran this command to try and get my python program to run in the background and let me exit the SSH connection I am using:
nohup python files.py >> files.log &
I then check ps to check it worked
$ ps a
PID TTY STAT TIME COMMAND
13059 pts/0 Ss 0:00 -bash
13327 pts/0 R+ 0:00 ps a
[1]+ Exit 1 nohup python files.py >> files.log
What does
OS version:Ubuntu 12.04 LTS
Hey all, I recently started programming in python, so I went to download python 3.0, and it appears I have ruined all python files on my installation, whenever I try to run anything with python I get this error:
chris@chris-Modena-M101:~$ python
bash: /usr/bin/python: No such file or directory
chris@chris-Modena-M101:~$
I tried to install Python 3 again it said it
So I was wondering how would you differentiate ppt, xls and doc files from each other in linux regardless of extensions. I tried 'file' but from the looks of it, all of MSOffice files are categorized under the same file type. Similarly I'm having trouble with docx, xlsx and pptx files, since they're essentially all zip files containing a bunch of xml.
Thank you for your help!
P.S.
Ok, I messed up my yum/rpm utilities in Centos. when i try running either or, with any and all files or options, i receive the following errors every time:
yum:
There was a problem importing one of the Python modules
required to run yum.
The situation is as follows:
Machine A has a file repository accessible via rsync
Machine B needs
the above mentioned files with all permissions and ownerships intact
(including groups etc)
Machine C has access to both A and B, but has a completely different set of users.
Normally, i would just rsync everything over, directly between A and B, but due to severely limited bandwidth at the mome
So I was wondering how would you differentiate ppt, xls and doc files from each other in linux regardless of extensions. I tried 'file' but from the looks of it, all of MSOffice files are categorized under the same file type.