Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

learn more… | top users | synonyms

-3
votes
1answer
13 views

How to cut a string after a number of characters in unix? [on hold]

How to delete all characters in one line after point with with sed? I have a file with multiple lines like this: 123456789 3483 98765432 56345 985745634 3469 67495735 87654 Now I want to delete ...
0
votes
0answers
12 views

How to connect to mail server in C [migrated]

I tried to make a connection to my mail server which is in local area network. The ip of mail server is 192.168.1.1. So, I tried the following program to test that. Program: #include<stdio.h> ...
1
vote
0answers
16 views

Monit “check program” and restart based on exit code

When I use check process, monit will start the program I define under start program then monit will restart it if it stops. But when I use check program monit will not automatically start it. If the ...
0
votes
2answers
44 views

Unix / Linux command to see finished or killed processes

Is there a way to see processed that finished running or were killed a given amount of time ago? For instance, ps -ef will show all running processes, but if a process finishes, it is no longer ...
0
votes
0answers
10 views

Data was truncated on an input, output or update operation

Question: What can cause that in rare times (in a few %), 0 Byte sized files are created over FTP with the following errormessage: Data was truncated on an input, output or update operation ...
0
votes
0answers
9 views

consistent uid in multiple Distributed File System nodes

I am using GlusterFS to build a Distributed File System, which later I use to store the instances files for my OpenStack cloud. Each node need to have r/w access to the files on Gluster. The user by ...
3
votes
1answer
71 views

Passing Apache variable into SetHandler directive

I'm trying to have dynamically determined Unix socket used for different separated PHP "apps" (different sockets lead to different PHP-FPM pools) on my Apache (2.4.18) server (using mod_proxy_fcgi): ...
0
votes
1answer
30 views

How to get the time and date at which a user account is locked/unlocked in unix?

I need to get the exact time and date at which a user account was locked or unlocked in Linux. passwd -S command can give the status of an account i.e., if its locked or unlocked.
0
votes
1answer
24 views

Simpliest unix non-blocking “broadcast” socket

I have non-regularly running program which outputs string, I need to send this output to some kind of socket which can be distributed out of docker container and which can be listened by multiple ...
0
votes
0answers
23 views

Bash - Deployment script for files to a webserver

I am using an old machine as a webserver to host a static, code-generated site (the site serves HTML documentation, JS, PDFs and images). The old machine, along with development PC are on a home ...
1
vote
1answer
114 views

Wrong hardware time on linux

I don't have the correct hardware time on my debian server: root@server[09:48]:date Tue Dec 22 09:48:52 EST 2015 root@server[09:48]:date -u Tue Dec 22 14:48:54 UTC 2015 root@server[09:48]:cat ...
0
votes
0answers
45 views

HDP installation using ambari failing on CentOS 6.7

I am getting following error while installing HDP using ambari. Couldn't make out where the error lies,as error itself is not very clear. ========================== Creating target directory... ...
1
vote
0answers
9 views

HP-Unix: C-shell:Disk space checking

I have 10 devices that using hp-ux and i want to check the disk space in each devices. my requirement is if the space more than 90%, the info of device ans space will be save to a log. this is list of ...
0
votes
1answer
18 views

Checksum error while installing ambari

While installing ambari server,getting following error. yum install ambari-server -y Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Updates-ambari-1.7.0 | 2.9 ...
0
votes
0answers
23 views

Super confused about possible NAT kerfuffle

I have a PFSense running on a ZBox at the moment - there are 4 Interfaces: LAN 1(192.168.2.0/24) WAN 1(192.168.2.0/24) (I know, same address, but this IF only connects to a modem, everything ...
-2
votes
1answer
22 views

UNIX Shell Script IP Lookup

UNIX/LINUX: I'm not there yet with writing shell scripts. Trying to write a short shell script that asks user to input IP address and performs host lookup of IP address and returns a name if ...
-1
votes
2answers
46 views

LINUX/UNIX basic command questions

I'm trying to write a single command line that uses netstat and grep to count all connections in a state of “ESTABLISHED” and outputs a single number representing how many connections are currently ...
0
votes
4answers
51 views

How can I tell which static IP address one computer uses to connect to another computer?

I have a workstation connected to several internal networks, with a different static IP address on each of them. Through one (?) of these networks, I can connect to a server over ssh. How can I tell ...
1
vote
0answers
73 views

uWSGI TCP/IP host:port vs Unix socket

We are running a Python WSGI server (uWSGI) and changed to socket file instead of a tcp/ip localhost:port connection. Now our uwsgi logs are full of errors like IOError: write error SIGPIPE: writing ...
0
votes
0answers
19 views

inconsistency between pfiles and fuser

$ uname -sri SunOS 5.10 i86pc $ fuser securityagent-default-server321-1449307160087-2015-12-05.log securityagent-default-server321-1449307160087-2015-12-05.log: 29478o $ pfiles 29478|grep ...
7
votes
2answers
263 views

Is there a way of exporting fstab info for device which is currently mounted?

Does there exist any tool which can tell you what the fstab line for a mount should be? Ie. it looks at something which has been mounted manually and tells you the line which you would have to add to ...
-2
votes
2answers
34 views

Does /etc/host.deny blocks http requests?

If I put the entry into /etc/hosts.deny, would it block all requests from that IP address to my machine (like iptables do), or would it only block access for some applications like SSH?
-2
votes
1answer
48 views

Grep is not working without having read permissions [closed]

I am in a folder where I do not have read permission in contents. ls -l List all files sucessfully. I want to count files that have some attributes in their name with: ls -l | grep ...
0
votes
2answers
38 views

list of size of directories of /dev/sda mounted as / without other partition or mounter

as you can see here: Filesystem Size Used Avail Use% Mounted on udev 10M 0 10M 0% /dev tmpfs ...
0
votes
2answers
55 views

How to ensure that the script and its command get killed once terminal is closed

I have written a script and it is working fine . It do some tail and grep operations. When I am closing my terminal and the greping the PID of my script , I can find the script is still present in ...
0
votes
1answer
25 views

save output of a python script to a text file

how can i save output of this python script to a text file? this is a KMS server which clients connect to it and activates their windows or office. i wanted to save the log in a text file. I should ...
0
votes
1answer
52 views

How to edit /proc/partitions file in linux

I know /proc is a VFS and cannot be updated by user from shell prompt. this is my understanding from the beginning. Now , I am writing one code and where I am taking care of corrupted /proc/partitions ...
0
votes
2answers
18 views

ErrorDocument not working with .htaccess file

I am trying to use a .htaccess file to setup specific behaviors for one directory. My .htaccess is as follows: ErrorDocument 401 /var/www/secret/logging.php AuthName "My Password Protected Site" ...
0
votes
2answers
24 views

How to unlist partitions from fdisk command in linux

While working on one of my server I noticed that there are no partitions listed under "fdisk -l" command. However the machine is working just fine. Wanted to know following things if anyone can help. ...
1
vote
1answer
26 views

How to pipe a file being written to?

I have a binary file that is being written to continuously. I need to read the full content of that file to a pipe (either to nc or to a FIFO) and keep reading it while its is written (i.e. the ...
0
votes
0answers
30 views

Cannot access samba share using full path

I'm unable to access my samba share //server01/test using the full path. But I am able to access by first browsing into //server01 and clicking on the test directory. Any reasons for this?
1
vote
1answer
34 views

VPS freeze every few days

I have a recurring problem with one of my applications/servers i'm responsible for. I basically had one VPS with all the stack needed to run my application (nginx + postgresql + ruby + ruby on rails + ...
2
votes
0answers
80 views

Nagios in activating status (doesn't want to start)

I've experienced issue when installing nagios on VM (Centos 6) I followed steps described in http://www.tecmint.com/install-nagios-in-linux/ Everything was fine untill [root@tecmint ]# service ...
1
vote
0answers
35 views

Monitor disk occupancy

The problem should be simple, but not so obvious to me. I have a process that creates temporaries in a specified directory, under MacOS X. I need to find the disk occupancy of the process, if ...
2
votes
1answer
63 views

I need a command to create a unique fingerprint from unix machine

I need to create a serial number for my application in a Unix machine. The generated serial number should be unique Do not change over time (Only changes after hard drive or mother board changes) Do ...
3
votes
2answers
80 views

How can I combine two commands to tally data from compressed and uncompressed log files?

I am running this command to get a tally of failed login attempts from a server’s auth.log and it works well: sudo cat /var/log/auth.{log,log.1} | grep 'Failed password' | grep sshd | awk '{print ...
-1
votes
1answer
114 views

What shebang for Anaconda Python on my directory of Server

I have anaconda python distribution in ~/anaconda/bin/python but what shebang can I use to call this version of python instead of the old one that is default on the server? # ...
1
vote
0answers
39 views

Interpreting TCP Traceroute results here?

I used to be able to connect via SFTP to a remote server to download files. Our local server is Windows 2008 Enterprise and the remote server is Unix. The local computer and the remote server are ...
-2
votes
1answer
31 views

Only downloading new folders/files with rsync

I periodically run a rsync command which downloads new files from my remote server. The files that are downloaded are stored in folders, once I have downloaded them to my local machine I may delete ...
0
votes
1answer
22 views

Know which file is related to a process execution

In Unix, with top I have an output similar to this: 13916 root 18 0 903m 129m 9936 S 51.4 0.1 3:07.01 php How can I know which file is this php process executing? For example: 13916 root 18 0 903m ...
2
votes
1answer
38 views

Archiving bunch of files in the fastest possible way [closed]

I'm implementing a torrent downloading and archiving system. I want to download a torrent file (which contain several small files) and then archive it. My Disk performance is poor. so i want an ...
0
votes
1answer
36 views

How do I create a shared directory under root?

I'm trying to create a shared folder on my root partition that anyone in a particular group can read and write to and any new files within that folder are also read writeable by anyone in that group ...
1
vote
0answers
28 views

Simple anti DDoS protection in FreeBSD [duplicate]

I have a lot of request from data centers to my web server on FreeBSD and sometimes it've have a lot of performance problem with my web projects. Adding to IPFW list all IP's data centers is ...
5
votes
1answer
84 views

Is it possible to increase the rate at which ntpd updates the system clock?

We have some hosts that have gotten out of sync due to ntpd being mis-configured, with an ntp server that was unreachable. Our clocks on some hosts (CentOS 6) are now upwards of 30 seconds off (in the ...
0
votes
2answers
61 views

Moving files between hosts using intermediate storage area [closed]

Is there any good existing solution for moving files from host A to host C, using host B a an passive intermediate storage area. A -> B -> C Limitations Host A and host C are on separate networks ...
-3
votes
1answer
115 views

Change existing file type from standard file “-” to directory “d” as shown with Unix ls -l

In summary, if I use ls -l it yields something for a directory like... drwxr-xr-x and the reported error for a directory with files in it, is it shows as a standard file and ls -l yields... ...
-1
votes
2answers
152 views

netstat on unix server shows strange connections

netstat is showing a lot of unknown connections from different strange places. are they just attempt to establish connection? or is my server compromised? I've removed my local addresses from the log ...
1
vote
2answers
68 views

Finding out what happened that I cannot connect to SFTP server?

We have a server with Windows Server Enterprise that runs a simple console app that connects to another server via SFTP in order to download files. I believe the remote server is Unix server, but I'm ...
1
vote
2answers
69 views

Crontab - How to determine current active processes started by cron

We have a very sensitive application which heavily makes use of crontab and we would like to track of how many processes started by crontab are still running. In short, we have a limit of 300 cron ...
0
votes
1answer
26 views

Easiest way to view puppet reports on pending (i.e., --noop) changes

My Puppet environment consists of a master and numerous agents which are run manually via the invocation of puppet agent --test. I am attempting to find the easiest (i.e., human readable, at-a-glance ...