04-18-2008
RE:Copy Command in Script Not Working
Hi
As I know when you write ksh variable and just aftr string , ksh do not understand it,
so try ${newfilename}/test1 instead $newfilename/test1.
It might help.
And please look into my problem, may be you can advise:
It is just before your
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Following is my shell script.
#!/bin/tcsh
view=$1
image=$2
objfld="obj-ppc-$image"
echo $view
echo $image
echo $objfld
echo "cleartool setview $view"
cleartool setview $view;
cd `cd /vob/ios/sys`;
In this "cd" is not working and not getting any error.
my shell is "tcsh"... (3 Replies)
Discussion started by: amitrajvarma
3 Replies
2. Shell Programming and Scripting
Hi,
I Have downloaded script for pfiles command, It is written to make it run on Linux, But I could not make out on which language it is written,kindly help me in executing this script:(
link: http://sourceware.org/systemtap/examples/process/pfiles.stp (1 Reply)
Discussion started by: thehulkom
1 Replies
3. Shell Programming and Scripting
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies
4. Shell Programming and Scripting
Hello.
I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct.
We have a script (ftp.script) which calls on... (1 Reply)
Discussion started by: udelalv
1 Replies
5. Shell Programming and Scripting
Hello All,
I have tried many permutaion combinations in my shell script but cd command is not working in shell script.
Can any one help me out in this.
Below is my script.
############
#!/bin/sh
set -x on
BASE_DIR=/etc/init.d
export BASE_DIR
cd $BASE_DIR
#############
but its... (8 Replies)
Discussion started by: ajaincv
8 Replies
6. Shell Programming and Scripting
when i am using Mailx command from AIX box, i am getting the following errors :
uuencode: not found.
mailx: not found.
but when i executed the mailx command as shown below it worked
cat /etc/hosts | mailx -v -s "test email" user@server.com
It works fine in the production server.
... (2 Replies)
Discussion started by: pyaranoid
2 Replies
7. UNIX for Dummies Questions & Answers
Hi everyone
I have a problem with my script
If I try directly this command
/usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz
It works
But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies
8. Shell Programming and Scripting
HI
I have and echo command which works perfectly in the shell but when i execute in the script it gives me an error code
query is as below
QUERY=`echo "Select Severity,Dupl_count,Creation_Time,Last_Received,Node_Name,Node_Name,Object,Message_Group,Message_Text,Last_Annotation from " \
... (2 Replies)
Discussion started by: Jcpratap
2 Replies
9. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
10. Shell Programming and Scripting
Hi,
On RHEL 7.2, I created below script in cronjob for every minute. If this process is found to be not running, it should record message in /var/adm/xymessages, start it and send email.
#!/bin/bash
source /export/home/prodadm/.bash_profile
if ;
then
... (8 Replies)
Discussion started by: ron323232
8 Replies
LEARN ABOUT MOJAVE
io::socket::unix
IO::Socket::UNIX(3pm) Perl Programmers Reference Guide IO::Socket::UNIX(3pm)
NAME
IO::Socket::UNIX - Object interface for AF_UNIX domain sockets
SYNOPSIS
use IO::Socket::UNIX;
DESCRIPTION
"IO::Socket::UNIX" provides an object interface to creating and using sockets in the AF_UNIX domain. It is built upon the IO::Socket
interface and inherits all the methods defined by IO::Socket.
CONSTRUCTOR
new ( [ARGS] )
Creates an "IO::Socket::UNIX" object, which is a reference to a newly created symbol (see the "Symbol" package). "new" optionally takes
arguments, these arguments are in key-value pairs.
In addition to the key-value pairs accepted by IO::Socket, "IO::Socket::UNIX" provides.
Type Type of socket (eg SOCK_STREAM or SOCK_DGRAM)
Local Path to local fifo
Peer Path to peer fifo
Listen Create a listen socket
If the constructor is only passed a single argument, it is assumed to be a "Peer" specification.
NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
As of VERSION 1.18 all IO::Socket objects have autoflush turned on by default. This was not the case with earlier releases.
NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
METHODS
hostpath()
Returns the pathname to the fifo at the local end
peerpath()
Returns the pathanme to the fifo at the peer end
SEE ALSO
Socket, IO::Socket
AUTHOR
Graham Barr. Currently maintained by the Perl Porters. Please report all bugs to <perlbug@perl.org>.
COPYRIGHT
Copyright (c) 1996-8 Graham Barr <gbarr@pobox.com>. All rights reserved. This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
perl v5.18.2 2014-01-06 IO::Socket::UNIX(3pm)