02-06-2015
Cheers Scrutinizer that did help. With the doubel quotes it did manage to expand out the three different filename qualifiers. Trouble is now it says 'name too long' !
I think I'll just split this into three seperate commands and cat them together.
Cheers for help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a developer that is trying to start a script with sh "scriptname". In the script, he is specifying #!/usr/bin/ksh as the command interpreter. For some reason sh is ignoring the #!/usr/bin/ksh. We are running Solaris 8. Does anyone have any ideas what could be causing this? Here... (3 Replies)
Discussion started by: ckeith79
3 Replies
2. Shell Programming and Scripting
Hi,
Any help or suggestions would be most appreciated. I am having problems in the latter end of this ksh script where I will be checking two files. If they exist do nothing otherwise I need to reinitialize the database which resides on o/s Aix 5.3. The problem I am facing is when the reinit... (2 Replies)
Discussion started by: hgjdv
2 Replies
3. Shell Programming and Scripting
I've created a script and copied it to another server and try to execute it at the same time but I'm getting a permission error.
I'm logged on as root and I gave the file 777 permission when I created it, but I can't run it remotely via ssh command because of permission issue.
Any ideas?
... (5 Replies)
Discussion started by: pdtak
5 Replies
4. Shell Programming and Scripting
Dear forum
I have the following small script:
#!/bin/ksh
echo -e "abba-o" | awk -F '-' '{ print $2 }' | cut -b 1It needs to be ksh.. in bash I don't have this problem.
If I run this on opensuse 10.2 I get this as output: e
If I run this on suse enterprise 10 sp2 then I get this: o
... (1 Reply)
Discussion started by: gemtry
1 Replies
5. Shell Programming and Scripting
Hi I am executing a KSH script by passing command line arguments
example: Red Green Dark Red Blue
when I am splitting the arguments by using " "(Space) as delimiter
But the colour Dark Red is a single parameter. But it is getting splitted in between
How to avoid this. Please help Also... (4 Replies)
Discussion started by: hemanth424
4 Replies
6. UNIX for Advanced & Expert Users
Hi.
I have a ksh script I want to run, but I'm connecting through a telnet and I don't want to FTP the scripts itself.
is there a way of running the script from command line ?
like ksh "The script itself..."
Thanks,
Ramon (4 Replies)
Discussion started by: mellowcandle
4 Replies
7. Shell Programming and Scripting
Hello
I am trying to send an email when a .KSH script is run on an AIX Machine.
This email will only include a subject line that is made up of variables from within the script, and is as follows:
CURRENT_DATE=`date +%Y%m%d`
TIME=`date`
ADMIN="myname@domain.com"
date
block ()
{
... (4 Replies)
Discussion started by: jimbojames
4 Replies
8. Shell Programming and Scripting
Hi Unix Experts,Team
I have a file (say comand_file.prm), The file has a command specified in column 6 (say "./execute_script.sh"). I want to execute this command in my script.
I am writing a KSH script to achieve this. Could you please assist me with this. (6 Replies)
Discussion started by: Jeevanm
6 Replies
9. Shell Programming and Scripting
I want my script to check directories and files within the directories older than 7days lold and remove them but the script only removes the directories older than 7 days.
find home/prod/clt/nal/inb -mtime +7 -exec rm -rf {} \;
The inb contains multiple directories that contain... (2 Replies)
Discussion started by: Bperl1967
2 Replies
10. Shell Programming and Scripting
Hello,
Hitting a wall on this one. When at the command prompt it works fine:
# find /home/testuser -name 'PAINT*canvasON.txt'
/home/testuser/PAINT_canvasON.txt
# pwd
/home/testuser
# ls -l PAINT*canvasON.txt
-rw-r--r-- 1 root user 23 Feb 07 02:58 PAINT_canvasON.txt... (2 Replies)
Discussion started by: seekryts15
2 Replies
LEARN ABOUT MINIX
pexpand
PEXPAND(1) General Commands Manual PEXPAND(1)
NAME
pexpand - expand requested commands in metafile
SYNOPSIS
pexpand [ +/-EPDOCSURIlrtmvsp ] file ..
DESCRIPTION
Pexpand reads each metafile file in sequence and expands any commands specified in a '+' option, and deletes any commands specified in a
'-' option. This is necessary because most drivers will not support many metafile commands such as 'v' (vector string) and 'O', 'C', and
's' (segments). Pexpand will expand '+' instances into the corresponding primitives which are supported, and delete all '-' instances.
Certain commands are currently considered basic, and must be supported by all drivers. The commands 'D', 'E', 'S', 'U', 'R', 'l', 'r', and
't' are basic (see metafile(5)).
If no input files are specified, the standard input is read.
+EPDOCSURIlrtmvsp
Expand the requested command(s).
-EPDOCSURIlrtmvsp
Delete the requested command(s).
EXAMPLE
To expand vector strings and segements, and delete pauses from "meta":
pexpand +vOCs -P meta
FILES
/usr/lib/meta/vchars.mta (see metafile(5))
AUTHOR
Greg Ward
SEE ALSO
metafile(5), psort(1)
RADIANCE
6/24/98 PEXPAND(1)