Sponsored Content
Full Discussion: Hpux and bacula script
Operating Systems HP-UX Hpux and bacula script Post 302805129 by Scrutinizer on Thursday 9th of May 2013 04:58:02 PM
Old 05-09-2013
You would need to use eval to execute the contents of $PSCMD:
Code:
eval "$PSCMD"

It would be better to use a function instead, for example
Code:
pscmd(){
  UNIX95=1 ps -e -o pid,comm
}

This User Gave Thanks to Scrutinizer For This Post:
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

2. Linux

Script migration help from HPUX

Hi, We are looking for the extensive list of Commands/Syntax that were working in HP-UX and will not work on LINUX. We would find such commands and modify them accordingly. Do we have any reference sites or documents. You help would be greatly appreciated. Thanks in advance (2 Replies)
Discussion started by: vijaipersonal
2 Replies

3. HP-UX

pwage-hpux-T for Trusted HPUX servers

I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email. original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies

4. HP-UX

Hpux pkill,a little help with script

This work #!/usr/bin/sh COMM=${1} shift UNIX95=1 ps -C ${COMM} -o pid='' | while read P do kill -15 ${P} done This don't work #!/usr/bin/sh COMM=${1} shift UNIX95=1 ps -C ${COMM} -o pid='' | while read P do kill -"$@" ${P} done (7 Replies)
Discussion started by: Linusolaradm1
7 Replies
BACULA-SD(8)					      Network backup, recovery & verification					      BACULA-SD(8)

NAME
bacula-fd - Bacula's File Daemon SYNOPSIS
bacula-fd [options] DESCRIPTION
This manual page documents briefly the bacula command. Bacula's File Daemon acts as the interface between the Bacula network backup system and the filesystems to be backed up: it is responsible for reading/writing/verifying the files to be backup'd/verified/restored. Network transfer can optionally be compressed. OPTIONS
-c file Specify the configuration file to use. -d nn Set debug level to nn. -dt Print timestamp in debug output. -f Run in foreground (for debugging). -g group Set the group/gid to run as. -k Keep readall permission when dropping privileges. -m Print kaboom output (for debugging) -s No signals (for debugging). -t Test the configuration file and report errors. -u user Set the username/uid to run as. -v Set verbose mode. -? Show version and usage of program. SEE ALSO
bacula-dir(8), bacula-sd(8). AUTHOR
This manual page was written by Jose Luis Tallon <jltallon@adv-solutions.net>. Kern Sibbald 6 December 2009 BACULA-SD(8)
All times are GMT -4. The time now is 01:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy