Unix OS

32K

Solutions

18K

Contributors

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.

Share tech news, updates, or what's on your mind.

Sign up to Post

i have install postfix on ubuntu 16.04 for send-only mail.
when i send mail nothing happend nor error and  don't send mail.
service status on postfix  is
fatal: bad numerical configuration: mailbox_size_limit = 20M
fatal: bad numerical configuration: mailbox_size_limit = 20M
warning: process /usr/lib/postfix/sbin/local pid 12388 exit status 1
warning: /usr/lib/postfix/sbin/local: bad command startup -- throttling

what is wrong here what should linit be?
0
Get expert help—faster!
LVL 12
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

This behavior is seen on RHEL6 and 7.

On some servers - cronjobs will write the output to the /var/spool/mail/[USER] directory, with [USER] being the name of the user the cronjob ran under.
On other servers - it does not write any output.

I am struggling to find where the difference in configuration is that is doing this. I have searched online - and most topics are asking on how to disable this output. All the suggestions I've found do not apply to my case. On the cronjobs that are not producing output:

1. There is no "/dev/null" or  "2>&1" redirect on any of the cronjobs

2. No MAILTO=""  on the users crontab

3. The /etc/crontab file of both the servers with /var/spool/mail output and without are the same:
            SHELL=/bin/bash
           PATH=/sbin:/bin:/usr/sbin:/usr/bin
           MAILTO=root
          HOME=/

4. The cron script itself is not redirecting output to"/dev/null" or  "2>&1"


Where else can I check for the setting that is stopping the output from being created?
0
Hi,

I have to upgrade an AIX 6.1.9 to an AIX 7.2, I have installed a PowerHA 6.1, this version is compatible with the 7.2?
0
Hello,
I need help in understanding, how lu can work on Solaris-10 on this server. I can detach mirror metadevices of LVM, but zpool looks confusing, which mirror I should break.
server-app01 # : |format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /pci@0/pci@0/pci@2/scsi@0/sd@0,0
       1. c0t1d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /pci@0/pci@0/pci@2/scsi@0/sd@1,0
       2. c0t2d0 <SEAGATE-ST930003SSUN300G-0868-279.40GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@2,0
       3. c0t3d0 <SEAGATE-ST930003SSUN300G-0868-279.40GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@3,0
Specify disk (enter its number):

server-app01 # zpool status -v
  pool: z
 state: ONLINE
 scrub: none requested
config:

        NAME          STATE     READ WRITE CKSUM
        z             ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c0t0d0s7  ONLINE       0     0     0
            c0t1d0s7  ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c0t2d0    ONLINE       0     0     0
            c0t3d0    ONLINE       0     0     0

errors: No known data errors
server-app01 # metastat -p
d5 -m d8 d9 1
d8 1 1 c0t0d0s5
d9 1 1 c0t1d0s5
d1 -m d4 d6 1
d4 1 1 c0t0d0s1
d6 1 1 c0t1d0s1
d0 -m d2 d3 1
d2 1 1 c0t0d0s0
d3 1 1 c0t1d0s0

server-app01 # zfs list
NAME                           USED  AVAIL  REFER  MOUNTPOINT
z                              

Open in new window

0
Does not clear command clears whole screen.

what i noticed is it still kept lot of stuff at the top like previous files, commands i gave etc.

Please advise how to clear everything on clear and do fresh
grep xyz *
afterwards to see only above grep results?
0
grep -C20 123x789 *
what is difference between above and below command
 grep 123x789 *

what -C20 means here. prints 20 additional bottom lies wherever it find 123x789?

please advise

if i have to print both bottom and top 30 lines what command i have to give?
0
Hello,

I have this error occurred when installing Python2.7 on AIX 6 OS :

 error: command '/opt/freeware/lib/python2.7/config/ld_so_aix' failed with exit status 8

Can I install separately ld_so_aix ? How ? Where can I get the library ?

Thanks for your reply
0
basically I would like to  create a sample hello world program in Map Reduce and scala which can hit the job history server.
0
Need solution in UNIX for below scenario.

I have a folder like /desktop/user/folder with the below files in it. I want the count of the files after removing the timestamp from the files.
Need more of a generic solution which can handle any timestamp format and file format.

test_file1_20110101.txt
test_file1_20109102.txt
test_file2_20110102.dat
test_file2_20110103.dat
test_file2_20110104.dat

Expected Result:
test_file1    2
test_file2    3
0
User with read-only access to entire file system - Solaris 10 - Possible?
0
Free Tool: ZipGrep
LVL 12
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

hello, all
I install solaris 11.3 but it have not gcc the site have no internet how can I install it
0
I have an AIX 6.1.9 version, I need to update IBM WebShere MQ.

Now I have version 6.0.2.3, which version can I get as an update?

Operationally what operations do I have to do to upgrade?
0
I have an AIX 6.1.9 version that is end of support, how can I update the security patches periodically?
0
$ zgrep --version
grep through gzip files
usage: zgrep [grep_options] pattern [files]


when i typed above command i do not see any version number? please advise
0
Log file cleanup issue in a Unix bash shell environment.  My development environment consist of about 60-80 J2EE developers at any given time.  Most developer are unit testing and integration their code through the day.  Each developer's execution of their application generates multiple log files.  I need to absolutely insure that prior to each developer's execution run all of their previous set of log files are deleted/removed.  One thing in common the log files for a specific developer all will have the same userid embedded in a set of logs.  I need an bash example of deleting all the common logs before the developer is allowed to invoke their next test run of the application.
0
need help with a Unix script.

1) Need to split a file that by fixed text and use part of the data to name the file.

Source file A

$$$$|DEF|ADDD
HDR|12345678|444|rhrhrh|hghghghg
LINE|33333|444444|ghththg
LINE|THHE|rrr|5555
LINE|TEHEHE|5555|urjurjr
HDR|234567890|444|rhrhrh|hghghghg
LINE|33333|444444|ghththg
LINE|THHE|rrr|5555
LINE|TEHEHE|5555|urjurjr

2) $$$$ starts new file
3) 2nd field in HDR is part of file name

Here is output

File B  name TESTTfile_12345678_20180130.txt

HDR|12345678|444|rhrhrh|hghghghg
LINE|33333|444444|ghththg
LINE|THHE|rrr|5555
LINE|TEHEHE|5555|urjurjr

File C  name TESTTfile_234567890_20180130.txt

HDR|234567890|444|rhrhrh|hghghghg
LINE|33333|444444|ghththg
LINE|THHE|rrr|5555
LINE|TEHEHE|5555|urjurjr

then original file saved to /archive

thanks!
0
$ ls chap1
ex1    ex2    ex3

$ ls chap2
ex1

$ mv -u chap1/* chap2/

$ ls chap1
ex1

$ ls chap2
ex1    ex2    ex3

not able to do above operations while trying at
https://www.tutorialspoint.com/unix_terminal_online.php
?

please advise.
do chap2 supposed to be under chap1 or outside?
0
I have an schema in oracle DB inside the organization network. I wanted to move the data from this DB to another DB outside the network.

So currently, I export the schema from the network, disconnect from the organization network and import it to other DB.

Is there a way  i can simplify this process, so I can directly connect from other network or any other simple / automated way.
0
I would like to have a list of all backup / archive of a node with its size.
I have a 30-day retention, I should have a list with the last 30 backup / archive done and their size
0
[Webinar] Kill tickets & tabs using PowerShell
LVL 12
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

With the ptcli command can I do the same operations I do with the graphical interface?
Would I like to automate the assignment of scratch volumes to distressed libraries?
0
Hi,

Would I need to generate a report on the results of the backups of the last 24 hours? with highlighted failures?
Is it possible to have the quantity and the operating time of each backup?
0
Hi,
how to do vi mode copy paste
what is mt what it means by tick which key i have to press for tick
mt
y tick t

what is keeping in buffer

mt
d tick t

what is d tick t

seems cygwyn not suporting vi.

how to practice vi on any free downloaded software or online.

what is p for paste and u undo commands?

what is map [ j 0.
 map [ j $.
please advise
0
hi,


when ii type below commands i am getting errors with paths

saiganesh@LAPTOP-EJBON1NM ~
$ /etc/vimrc
-bash: /etc/vimrc: No such file or directory

saiganesh@LAPTOP-EJBON1NM ~
$ ~/.vimrc
-bash: /home/saiganesh/.vimrc: No such file or directory

saiganesh@LAPTOP-EJBON1NM ~
$



can you please advise on how to resolve them.
0
i sat display:
export DISPLAY=localhost:10.0
then i try som x (like xclock)
$ Gtk-WARNING **: cannot open display: localhost:10.0 at /usr/lib/x86_64-linux-gnu/perl5/5.22/Gtk2.pm line 126.
0
Hi,
Somebody emailed .sh Unix script I want to view code how can I have a look at it in windows
0

Unix OS

32K

Solutions

18K

Contributors

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.