02-04-2013
Hello All,
How to run the scripts automatically when the user log into the shell
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have problem in writing the shell script involving MPE command STREAM related to HP-UX and Unix command. Script is
sh "nlshCMD 'STREAM <job name1>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name2>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name3>' |... (0 Replies)
Discussion started by: bosskr
0 Replies
2. HP-UX
Hello,
I have problem in writing the shell script involving MPE command STREAM related to HP-UX and Unix command. Script is
sh "nlshCMD 'STREAM <job name1>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name2>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name3>' |... (1 Reply)
Discussion started by: bosskr
1 Replies
3. Shell Programming and Scripting
Hi ,
I have a piece of code ...wherein I need to assign the following ...
1) A command line argument to a variable
e.g origCount=ARGV
2) A unix command to a variable
e.g result=`wc -l testFile.txt`
in my awk shell script
When I do this :
print "origCount" origCount --> I get the... (0 Replies)
Discussion started by: sweta_doshi
0 Replies
4. Shell Programming and Scripting
I am trying to mount the ramdisk for sorting, and i get the message "ramdisk already defined." What exactly is /dev/ramdisk0 and is it safe to remove it?
# command
sudo -S mktd 60 <<EOF
initiate
EOF
# block of code for mktd
...
&& {
print "ramdisk already defined."
... (1 Reply)
Discussion started by: ChicagoBlues
1 Replies
5. UNIX for Advanced & Expert Users
Hi,
Well my title isn't very clear I think. So to understand my goal:
I have a script "test1"
#!/bin/bash
xvkbd -text blabla
with xbindkeys, I bind F5 key in order it runs my test1 script
So when I press F5, test1 runs.
I'm under Emacs/Vi and I press F5 in order to have "blabla" be... (0 Replies)
Discussion started by: xib.be
0 Replies
6. UNIX Desktop Questions & Answers
Hi all,
I wish to know whether Unix can access window's file in Unix's terminal?
Apart from that, how to copy files or share files between Window and Unix? I get to know of secure copy, however, my company's Unix does not support the feature of secure copy? Any other method for me to share/... (5 Replies)
Discussion started by: jessy83
5 Replies
7. Web Development
I have Apache v2.0.63 on Solaris 10 (x86 on VM). While starting the apache server, facing the following exception -
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
Googling says to add the entry LoadModule authz_host_module... (0 Replies)
Discussion started by: poga
0 Replies
8. AIX
I have an IBM 9110-51A p Series Server with AIX 5.3.
It has 2 scsi hard disks hdisk0 and hdisk1 (and 4 on disk array).
hdisk1 for few days ago is "Defined".
When hdisk1 began "defined" i have a new one unknown disk "available" which called hdisk6.
The left led of the case of hdisk1 on the... (4 Replies)
Discussion started by: stetsip
4 Replies
9. Shell Programming and Scripting
I'm trying to write a bash script called YN that looks like the following
YN "Specify a question" "doThis" "doThat"
where "doThis" will be executed if the answer is "y", otherwise "doThat".
For example
YN "Do you want to list the file dog?" "ls -al dog" ""
Here's my attempt... (3 Replies)
Discussion started by: LeoKSimon
3 Replies
10. Shell Programming and Scripting
Hi Folks,
I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml
which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/
now the credentials of unix box are
abc345 -->(dummyid)
ftyiu88--->(dummy passwd)
... (4 Replies)
Discussion started by: punpun66
4 Replies
LEARN ABOUT DEBIAN
fusioninventory::agent::tools::unix
FusionInventory::Agent::Tools::Unix(3pm) User Contributed Perl Documentation FusionInventory::Agent::Tools::Unix(3pm)
NAME
FusionInventory::Agent::Tools::Unix - Unix-specific generic functions
DESCRIPTION
This module provides some Unix-specific generic functions.
FUNCTIONS
getDeviceCapacity(%params)
Returns storage capacity of given device, using fdisk.
Availables parameters:
logger a logger object
device the device to use
getIpDhcp
Returns an hashref of information for current DHCP lease.
getFilesystemsFromDf(%params)
Returns a list of filesystems as a list of hashref, by parsing given df command output.
logger a logger object
command the exact command to use
file the file to use, as an alternative to the command
getFilesystemsTypesFromMount(%params)
Returns a list of used filesystems types, by parsing given mount command output.
logger a logger object
command the exact command to use
file the file to use, as an alternative to the command
getProcessesFromPs(%params)
Returns a list of processes as a list of hashref, by parsing given ps command output.
logger a logger object
command the exact command to use
file the file to use, as an alternative to the command
getRoutingTable
Returns the routing table as an hashref, by parsing netstat command output.
logger a logger object
command the exact command to use (default: netstat -nr -f inet)
file the file to use, as an alternative to the command
perl v5.14.2 2012-06-25 FusionInventory::Agent::Tools::Unix(3pm)