Excerpt from the Wikipedia page Unix was originally written in assembly but has since been rewritten in C. It has been branched many times both commercially and open source. One popular variant is the BSD variant which originated from the University of California, Berkeley. It also gave rise to ...
-1
votes
0answers
21 views
mac time code of btime?
I have a file system which I thought was ext2 but there is btime metadata for the files. btime is supposed to mean birth time of the file. I also read that this btime was introduced in ext4. Does this ...
3
votes
3answers
33 views
Java default JRE parameters on Unix
Is it possible to configure java in unix to always add a JRE parameter whenever java is run?
e.g. -Dcom.sun.management.jmxremote.port=25800
0
votes
0answers
13 views
How do I load the dump.rdb file into redis?
I have a dump.rdb file, which is in the same directory as redis.config.
When I start my sever:
redis-server ./redis.config
It does not load the data in that 1 GB file.
How do I load that data?
1
vote
2answers
74 views
How do I delete everything in the /tmp/ folder?
I do "sudo rm *" and it does not remove everything. (I probably have lots of objects in there which I don't need.)
I'm not asking whether it's ok to remove everything in tmp - i'm asking how to do it ...
0
votes
1answer
27 views
Why does “cp -Rp ~/foo /Volumes/KINGSTON” give “cp: chflags: /Volumes/KINGSTON/Proj/Proj/Color.h: Invalid argument” [closed]
This is on Mac OS X Lion, and I use the following to back up a project folder
cp -Rp ~/foo /Volumes/KINGSTON
or
cp -a ~/foo /Volumes/KINGSTON
The -p or -a is so that the timestamps of the files ...
4
votes
5answers
97 views
How to find all filenames with given extension
I need to find all .pem files on my system. Would the following do this?
sudo find / -type f -name *.pem
If not, how would I write a find command to find every file of the sort?
0
votes
1answer
35 views
syslog written on console
I have odd problem with syslog local7, my syslog configure the syslog to be written to
local7.info /var/log/syslog_info
it's working just fine for years but recent days one device syslog message ...
1
vote
1answer
24 views
Is there any way to authenticate a SCO login to an Active Directory user?
I currently have a SCO OpenServer 6 server. I also have a Windows Server 2008 R2 server, controlling an Active Directory domain and doing a mighty fine job at it. On any given day, users are ...
1
vote
1answer
19 views
mysql command line show statements a sql script executes?
I'm a long time postgres user, but am now looking after maintenance for mysql databases. One thing that I'm used to from postgres, is when you run a sql script it will output on the command line what ...
-1
votes
0answers
43 views
How to make CPU a bottleneck [closed]
I would like to learn more about how CPU works. I would like to do so by doing the following:
Write a small function (in Python, or could do it using mysql)
Execute the function multiple times until ...
0
votes
1answer
27 views
File creation date 10 minutes out
I'm creating a file back up system that uploads via FTP, however when I get the uploaded file name, it says it was generated let's say 4 minutes past 5, when I get the creation time of the file via ...
-3
votes
2answers
59 views
How to list all unix current process in details?
How do I display all current process in Unix in details and it's source files?
The report I want is similar to Daily Process Log in cPanel ex:
bookysma bookysma.com 0.7 httpd ...
3
votes
1answer
52 views
Is a Unix group without an entry in /etc/group valid?
Is a Unix group without an entry in /etc/group valid? A user had the group as his primary group and that entry was deleted from the /etc/group file.
2
votes
2answers
49 views
Is there a way to grep with a constrained file type?
right now i am using something like this:
find . -name "*.xml" | xargs grep -l "foobar"
it works, but i was wondering if grep has this functionality built in?
1
vote
1answer
20 views
Sending content of a file in Expect
How Can I send the content of a file in Expect? Do I have to use cat command in a way? if yes how? lets say my file is called 1.txt.
example:
expect "Enter command to send:" {send "???? \r"}
???? ...
0
votes
4answers
33 views
Distributed cron
I maintain many servers and have the following requirements
Run a unix process at a given time
Run a unix process at boot time and keep it running (in case it dies)
Disable a running process
I am ...
0
votes
2answers
39 views
Cron daemon's status check on production server
I have a script which need to be run as cron job.
In the staging environment i could run the script as a cronjob. but in the production environment it is not working,
so i checked whether cron ...
1
vote
1answer
46 views
Interactive shell based on SSH and UDP
I've heard from a friend about a client-server application which initializes on top of SSH connection but implements interactive shell over UDP protocol. It is specifically designed for bad quality ...
0
votes
2answers
30 views
LSF-Bad resource requirement syntax Error
I am trying to use the memory resource allocation command available in LSF.
A normal format of the command is :
bsub -R "rusage [mem=1000]" sleep 100s
When I launch this command directly from ...
0
votes
1answer
51 views
FreeBSD vs. Illumos [closed]
I am using FreeBSD since some years now for server use and archlinux for desktop.
I really use many features of FreeBSD (ports, zfs, jails, pf, ...) now I read about Illumos an OpenSolaris derivate. ...
0
votes
1answer
37 views
Waiting until TCP socket is available in bash
Helli,
I have a script that waits some time until a machine (being provisioned) comes up and then it connects to ssh and executes something. I use "sleep" for that.
I would like change my script to ...
4
votes
1answer
68 views
Does directory mtime always change when a new file is created inside?
Is it always true that when a new file is created in a directory - the directory's mtime changes?
2
votes
5answers
115 views
Inventory or Audit Installed Linux Software
I am working on a project where we need to be able to tell and report periodically on what software is installed on our various Linux/Unix servers. I have looked at this, How to inventory what ...
0
votes
1answer
37 views
Unix Server migration
i work with unix server 11.31. Now i want to move my binaries to unix 11.11. I am confused will those binaries will work in 11.11 since there was some signal changes and configuration changes in newer ...
1
vote
2answers
31 views
How to Jail certain users in ProFTPD on Unix (Mac OSX)
I have ProFTPD set up so that I can remotely upload new php files and suchlike to my htdocs on my server. That's all fine, but I would like to jail the 'nobody' (No write, Read/Download only) user ...
-1
votes
1answer
45 views
ROR Server without ruby?
I'm noob in ror, unix and other such things.
What I have:
Server A (ubuntu) with ROR application on it.
Server B (ubuntu) - new server on wich we should move.
What should I do:
Install all ...
1
vote
2answers
43 views
How to manipulate accented files on Unix?
On our CMS that went through many versions and hosting platforms, we just came across an accented image file that would not work from it's url. So I ssh'd onto the box and tried to rename it.
...
3
votes
2answers
68 views
Break all hardlinks within a folder
I have a folder which contains a certain number of files which have hard links (in the same folder or somewhere else), and I want to de-hardlink these files, so they become independant, and changes to ...
1
vote
1answer
56 views
Encoding to base32 from the shell
I'm looking to encode an input string to base32 encoding directly from the shell. I'm looking to do this in ubuntu, but I imagine flavor doesn't particularly matter here.
Are there any existing ...
0
votes
2answers
89 views
How do I install the latest version of Sphinx Seach in Apt-get?
When I do "sudo apt-get install sphinxsearch", I get version 0.9. I want the latest stable version (which is 2.4, I believe)
How can I do that using aptitude?
0
votes
2answers
15 views
cron time is not correct or cron is running with delay
my cron jobs are executed half an hour later than when they are supposed to. Does cron refer to the system time when it executes its jobs or refers to its own time(if it has one)?
0
votes
2answers
37 views
What are the best practices of the usr, var, and etc folders? [closed]
Possible Duplicate:
Meaning of directories on Unix and Unix like systems
I'm confused about the different uses for 3 of the standard "root-level" folders: /var /etc /usr
What are the ...
0
votes
1answer
91 views
cannot write to nginx www folder
I've recently installed nginx on my dev machine with Ubuntu 12.04.
I am currently logged in as myuser and after installing nginx I setup the following file permissions (nginx www folder was owned by ...
3
votes
3answers
51 views
Moving files off volume and then back on while preserving all attributes?
I have a situation where I'm testing a new filesystem that has an issue with some metadata. All of the files are intact, however I ultimately have to effectively move every single file off to another ...
-3
votes
3answers
40 views
united authentication for multiple *nix hosts? [closed]
Something similar to nt domain controller in linux?
ex. two hosts with one shared authentication.
how to ?
2
votes
2answers
142 views
unix ssh block ipaddress
I'm working on a unix server, sshing into the machine using plink or session.net (a C# module that opens an ssh connection to the server and runs commands).
Everything was fine until we restarted the ...
-3
votes
1answer
116 views
Why does some users prefer other shells than bash? [closed]
I have been wondering this question for ages.
Every time I try a zsh or a korn shell, I feel ackward and limited in capacity. There is no strangely attractive force from using these shells.
Can ...
1
vote
2answers
54 views
Using wget and Awk to count similar expressions
I am trying to create a script that uses wget to download a data set and then awk to sort though the file and tell you the most common filter used which is $14 column. So far I have the wget function ...
0
votes
0answers
32 views
Not able to ping virtual IP from other node of the cluster
This is 2 node veritas cluster running HP-UX and the problem seems to be related to network.
on node1, the virtual IP is assigned to interface lan0:2, which is not reachable from node2.
See details ...
1
vote
0answers
92 views
Pure-FTP login error
I've installed Pure-FTPd and am trying to get virtual users to work with it. Unix users are OK and are able to transfer files but my virtual user that I created can't log in.
I'm running Linux Ubuntu ...
0
votes
3answers
89 views
Monitoring CPU, Mem, disk, on a single remote server
I've been looking for a simple starter solution for monitoring my [currently] single server hosted solution. Other than Nagios and similar, are there other good (simple) solutions people are using?
3
votes
2answers
53 views
How to Update Text in File within Unix Shell Script
I'm creating a shell script that needs to update the sudoers file. So basically I want to be able to append ":/usr/local/bin/" to the following text in /etc/sudoers:
secure_path = ...
0
votes
2answers
58 views
Unix wrapper to make any binary accept stdin/stdout redirection
This is a common situation: you want to include command 'foo' as part of a pipeline, but unfortunately command 'foo' only accepts actual filenames for I/O and does not read/write from stdin/stdout. I ...
2
votes
4answers
68 views
What happens when I kill a command with ctrl+c?
Specifically, I ran a rm -R /my/dir by mistake on a unix box (ubuntu 10.04). When I realized the horror within a few seconds I quickly killed it with the Ctrl+C command. It now seems I haven't lost ...
0
votes
0answers
16 views
CentOS fix permissions of system [closed]
Possible Duplicate:
Accidentally ran chmod 775 -R / (not ./) on linux server (RedHat)
I was trying to set a chmod 644 for wordpress and accidentally sudo chmod that and it seemed to ...
0
votes
2answers
35 views
“Silent” Backgrounding a Process
I have added a git pull & to my bashrc to keep a particular project always up to date!
However this means every time I open a terminal I get a message like
[17]+ Running git pull
And a few ...
-1
votes
2answers
55 views
merging two files using perl keeping the copy of original file in other file [closed]
I have to files like A.ini and B.ini ,I want to merge both the files in A.ini
examples of files:
A.ini::
a=123
b=xyx
c=434
B.ini contains:
a=abc
m=shank
n=paul
my output in files A.ini should be ...
2
votes
3answers
70 views
Give apache write access to DocumentRoot on dev server
I've got apache running on my mac workstation (OS X 10.7, with the pre-installed copy of apache), and our web applications require write access to certain sections of the filesystem to run (usually ...
1
vote
3answers
171 views
When does /tmp get cleared?
I'm taking to putting various files in /tmp, and I wondered what the rules on deleting them are?
I'm imagining it's different for different distributions, and I'm particularly interested in Ubuntu ...
1
vote
1answer
58 views
Rpm removal does not remove delivered dirs and leaves garbage
I deliver an application via an RPM.
This application delivers various directories and files.
E.g. under /opt/internal/com
a file structure is being copied.
I was expecting that on rpm -e all ...