0782-310 Usage:
mkvirprt -A AttachmentType
mkvirprt [ -A AttachmentType ] -d QueueDevice -n Device
-q PrintQueue -s DataStream -t PrinterType [ -T ]
Use 'smit mkvirprt' to use it interactively.
dspmsg: 1312-042 Invalid argument index in message. May need
more arguments on the command line.
The script runs fine for the ones having three columns defined in the feed file
HTML Code:
cat printfeed
emg1 emg1ps emgj1
emg2 emg2ps emgj2
..... snipped .....
zeba zeba
emr12 emr12
..... snipped .....
(note) the second column can be empty
But, the ones with empty second column returns the error above.
I think I need to modify the feed file with delimiter (pipe -- |):
HTML Code:
cat printfeed
emg1 | emg1ps | emgj1
emg2 | emg2ps | emgj2
..... snipped .....
zeba | | zeba
emr12 | | emr12
..... snipped .....
(note) the second column can be empty
With the delimiter in place for the feed file, please let me know how to make it run..
Posting "Does not work" without explanation does not help you or anyone. If a command does not work for you, please show the exact circumstances you used it, and the exact error or malfunction you received. Do not paraphrase errors, or post the text as links, images, or attachments if you can avoid it: Paste the exact message, in code tags, like [code] text [/code] or by selecting the text and using the button.
cat printfeed
emg1 emg1ps emgj1
emg2 emg2ps emgj2
..... snipped .....
zeba zeba
emr12 emr12
..... snipped .....
(note) the second column can be empty
I am getting :
PHP Code:
0782-310 Usage:
mkvirprt -A AttachmentType
mkvirprt [ -A AttachmentType ] -d QueueDevice -n Device
-q PrintQueue -s DataStream -t PrinterType [ -T ]
Use 'smit mkvirprt' to use it interactively.
dspmsg: 1312-042 Invalid argument index in message. May need
more arguments on the command line.
If I try this code:
with this feed file (with delimiter 'pipe'):
PHP Code:
at printfeed
emg1 | emg1ps | emgj1
emg2 | emg2ps | emgj2
..... snipped .....
zeba | | zeba
emr12 | | emr12
..... snipped .....
(note) the second column can be empty
I am getting this:
PHP Code:
Host name | does not exist. A valid host name is required!
I'm reading a text file using a while loop but when I call a function from within this loop it exits that same iteration … even though there are many more lines in the file to be read.
I thought it was something to do with the IFS setting but it appears that a function call (when run... (3 Replies)
In a ksh, I'm attempting to pass my string of arguments to the mkuser command in a variable as follows...
cmd="pgrp=ACRGENU groups=ACRGENU home=/home/${USERID} shell=/usr/bin/ksh"
cmd=$cmd" gecos='${USERNAME}' login=true su=false rlogin=true daemon=true"
cmd=$cmd" admin=false... (4 Replies)
I have below data:
DAY1=10202013
I am trying below but not getting the desired output:
COUNT=1
DATE=DAY$COUNT
echo "Date is $DATE"
However output I am getting is:
Date is DAY1
I wanted the output as:
Date is 10202013
I tried following as well:
DAY1=10202013
COUNT=1... (3 Replies)
I have an for loop that reads the following file
cat param.cfg
val1:env1:opt1
val2:env2:opt2
val3:env3:opt3
val4:env4:opt4
.
.
The for loop extracts the each line of the file so that at any one point, the value of i is
val1:env1:opt1 etc...
I would like to extract each... (19 Replies)
Hi All,
I need to pass 2 variables name 'vamskt' and 'vamsi'.
Here is my question:
delete from gpi.usergroup where usg_user_id in ('vamskt');
delete from gpi.userroles where uro_user_id in ('vamskt');
delete from gpi.user where usr_id in ('vamskt');
insert into gpi.user... (3 Replies)
I'm trying to understand if it's possible to create a set of variables that are numbered based on another variable (using eval) in a loop, and then call on it before the loop ends.
As an example I've written a script called question (The fist command is to show what is the contents of the... (2 Replies)
Hey all,
I'm wondering how you pass variable's that are defined in one script to another script that's been called by that first script.....
Best regards,
Jaz (1 Reply)
Hi folks,
I'm looking for a solution to pass variables to a sed-command. I'm reading a lot of threats and also the q&a "How can I use a variable in sed?". None of these commands works. I'm using AIX 5.2.
I want to do the following:
NUMBER=` echo 38341` | sed -n '/$NUMBER/p'
an obtained... (3 Replies)
Hi,
Is there any way to pass variable to a sed script.For awk we have -v option.like that do we have any way to pass variable to a sed script from a awk script or from normal script?
Thanx,
sounder (1 Reply)