Quantcast
Channel: UNIX and Linux Forums
Browsing all 16232 articles
Browse latest View live
↧

Help with credentials when using Grep across multiple servers

Hello all, I need some help with a script I have been working on. I was wanting to know if it is possible to add authentication to it for each server it runs across? The credentials are all the same on...

View Article


Cd and mv in a tar ksh script not working

hi forums, can you help me on how to make cd and mv code work in this script? Code: #!/bin/ksh #i got it from: http://www.unix.com/shell-programmin...-two-days.html MAIN_DIR=/home/user/pumela find...

View Article


Auto input to fetch cluster manager details

Team, Presently i am trying to do basic checks on my my-sql cluster boxes. The command ndb_mgm checks for the cluster environment details by typing the show command, and exit to come out of the ndb_mgm...

View Article

Cp command not working as expected in HPUX

Hi, I'm having trouble with a simple copy command in a script on HPUX. I am trying to copy a file and append date & time. The echo command prints out what I am expecting.. Code: echo "Backing up...

View Article

UNIX command

From the below list of the files I need to delete the files where any file name greater than having M1400. I can use _ as splitter. but not sure what is the exact command. Code: /files/US> ls -ltr...

View Article


Extending swap space

I've to install Oracle binaries (I'm oracle DBA) and for that I've extend swap space in my home computer. My situation is like this. Code: [root@rac1 ~]# parted -s /dev/sda print free Model: ATA VBOX...

View Article

Compare directory dates

hi, I need to know if a specific directory exists in a folder named after the date of yesterday (02/06/2015) The problem is simple but not how to do it. :confused: Code: i= date -d "yesterday"...

View Article

Extending swap space

I've to install Oracle binaries (I'm oracle DBA) and for that I've extend swap space in my home computer. My situation is like this. Code: [root@rac1 ~]# parted -s /dev/sda print free Model: ATA VBOX...

View Article


High cpu usage

I have created one script and i have added it into cron to run after 10 mins. However I have noted that whenever that script runs, It causes CPU utilization of server to increase about 10-20 % I have...

View Article


understand sed

Code: cat teledir.txt jai sharma 25853670 chanchal singhvi 9831545629 anil aggarwal 9830263298 shyam saksena 23217847 lalit chowdury 26688726 If i use the below command , it is giving me the output...

View Article

Move to New Timestamp Folder

Hi All, I have a cron job that has worked wonders: Code: zip /home/myHostedFolder/public_html/images/_backups/front/$(date +\%Y\%m\%d).zip /home/myHostedFolder/public_html/images/front/* && rm...

View Article

[BASH] Read pipe of unkown number of arguments?

Heays So i have that script to which i'd like to pipe (rather than just regular arguments) some data from another virtual output command. Simplified: Code: echo * | script.sh When i know how many args...

View Article

Limit bash/sh user's access to a specific directory

Hello Team, I have Solaris 10 u6 I have a user test1 using bash that belong to the group staff. I would like to restrict this user to navigate only in his home directory and his subfolders but not not...

View Article


Regarding Daylight Setting

Dear Experts, My AIX Servers running with the correct timezone, but Daylight savings settings has been enabled, unfortunately Daylight Saving Setting is not required for my project. To disable the...

View Article

String variable as part of expression in find command

Hi, I am new in scripting, and I am currently working on a script that will look for other files in a certain directory and exclude some file type. this works fine: Code: Find_File2Exclude=`find...

View Article


IPMP and changing gateway

Hi, Network guy here...I have had an issue today, whereby we changed the device that was acting as a gateway for a Solaris box (effectively changing the MAC address of the gateway - NOT the IP address)...

View Article

Read() time out in socket programming

Hi, When can the read() system call gives timeout error when the same connection worked for writing data to the other end of the socket, while the next call with read() gives timeout error? Can anyone...

View Article


Image may be NSFW.
Clik here to view.

Apache web server instalation error in HP-UX 11.31

Hi , I am getting an error while installing on a new hp-ux 11.31 server for the first time. I have troubleshooted to some extent and installed the C compiler which it was asking for and now a new error...

View Article

Extracting data from rsync log

Hi I have a daily rsync that runs and i am trying to find a easy way of extracting the start time and end time of the sync and extract the details of how much data was copied. I would like to use this...

View Article

Image may be NSFW.
Clik here to view.

Delete Files from a date

I'm quite new to Unix but I want to delete some old backup files stored in a directory. the backups are stored on a network storage device located at /mnt/terastation12/backup. I want to delete...

View Article
Browsing all 16232 articles
Browse latest View live