Questions tagged [unix]

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

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 Linux.

Notable variants

  • Silicon Graphics - Irix
  • IBM - AIX
  • Sun Microsystems - Solaris
  • Hewlett Packard - HP-UX

Unix is officially trademarked as UNIX.

Unix on Wikipedia

1949 questions
0
votes
1 answer

catch bash script output from expect, expect hangs

I currently use expect to pass password to rsync to copy files across unix servers test.sh ./expect.sh $password rsync -azvr $username@$host:$file ./$dir expect.sh #!/usr/bin/expect -f …
user12145
  • 1,115
  • 6
  • 28
  • 47
0
votes
5 answers

Rsync to a backup server resulted in additional space taken

I ran an rsync to backup one of our production servers. I put the production server in readonly mode so that no additional data could be added or modified. I then did a recursive rsync with archive (-a) to backup the production servers data…
0
votes
1 answer

How to lock a user into a directory (not SSH)

I have regular users who are not SSH'd into a machine but are accessing the machine directly. How can I lock them into their home directory or any directory? At the moment they can successfully run rm -rf /. They can also run all sorts of dangerous…
user974407
  • 1,081
  • 1
  • 8
  • 10
0
votes
1 answer

Custom schema for OpenLDAP 2.4

I am new to OpenLDAP administration. My aim is to learn how to create custom schemas, and customize "my" directory server this way. I tried to add one optional attribute - ipPhone. Made a schema (dummy) then converted it to the below LDIF file: dn:…
Moshe Shmukler
  • 207
  • 1
  • 8
0
votes
1 answer

Check how much time has elapsed for Cron job and send email

There is a cron job that is set which runs throughout most of the day, sometimes the job gets stuck and I would like to set a time or check on it which let's me know if it has been stuck for more than 20 minutes, I wanted to get ideas on how I can…
0
votes
1 answer

Exim need to send mail off server

Never needed to set up a mail server before. I've got exim up and running perfectly fine. When I send an email using command line to my.email@gmail.com it works wonderfully, arrives from zach@mydomain.com exactly as I'd expect it to. When I try to…
0
votes
2 answers

Unzip piping order

I have a file, foo.zip which looks something like this: foo.zip -- fileA.txt -- fileB.txt I can pipe the output of the extracted files like this: unzip -p foo.zip *.txt | something My problem is that I want to make sure that the files are in the…
Grav
  • 115
  • 4
0
votes
1 answer

how to configuring vagrant to allow some specific IP to be available on a windows machine?

I have Vagrant installed on my windows machine. I am using putty to ssh to the ubuntu machine. Lets say that I need some specific service (let's say a graphite for stats) which should be reached with an IP address to access the GUI of that service.…
Donny
  • 19
  • 2
0
votes
2 answers

How to git add list of files from git diff

I accidentally added a bunch of cache files into the repo. I've now removed them and now want to commit the change to the repo. So I tried to do the following, but git doesn't seem to like it: git diff --name-only | grep '/cache/' | xargs git…
denormalizer
  • 491
  • 2
  • 5
  • 15
0
votes
4 answers

network slow on port 80 only

i'm trying to diagnose why our company's wifi network is running really slow. the network is wpa2 encrypted, and there hasn't been any other traffic accessing our network other than the 5 computers in our office. i've tried using connections on…
calculus_barmitzvah
0
votes
1 answer

TOP processes by system time

I have a system running 2 processes - MySQL and Java I'm seeing 20-30% of the time spent in %system. I've looked around to try and find a way to identify which what the balance of the system time is between the processes, i.e. is it the MySQL…
Codek
  • 203
  • 2
  • 9
0
votes
1 answer

Find Users without a password in UNIX AIX

I'm searching for a script that finds users who don't have a password. Could anybody please explain me the commands that are needed in such a script?
0
votes
0 answers

Unexpected EOF write error

We have a Sun Solaris 10 server that is failing to backup using tar to write to tape. tar cEf /dev/rmt/0cn . The complete error is tar: write error: unexpected EOF tar error code 2 The directory is 652G and we are using LTO 4 tapes…
stead1984
  • 577
  • 8
  • 16
  • 32
0
votes
1 answer

Strange behavour of which in a shell script launched as a forked process

So I have a java process that is doing some automation. One of the things it has to do is find the JDK home on random machines. So I wrote a shell script to try and find the JDK home assuming that javac is on the path. While testing this shell…
0
votes
1 answer

Usergroups in LDAP: User and Group in same object

"Usergroups" are a common concept in UNIX, many Linux distributions (e.g. Debian) use it as default. It means that each user has its corresponding private group (e.g., User "alex" has also a group "alex" which is his primary GID). Now when you have…
divB
  • 568
  • 1
  • 7
  • 23