03-28-2005
Comp-3 conversion possible with Shell Scripting or PERL?
I guess the subject asks it all, but I am wondering (before I go and code a COBOL module) if conversion of regular ASCII data to COMP-3 is possible on a UNIX environment (AIX 5.1)? Any help would be appreciated! Thanks, Dave
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello everyone. I am new to linux and need help again. I need help converting this bash shell to linux:
for i in `ls -l *.txt`
do
`./cnvidtf.pl $i`
`curl -u login:pswd --disable-espv -T loadfile.seq ftp://11.1.11.1`
`mysql -u login -h 11.1.11.1 -ppswd < lddocs.sql`
done
Thanks! Any help... (6 Replies)
Discussion started by: freak
6 Replies
2. Shell Programming and Scripting
Hello,
I have done some BASIC shell scripting/PERL scripting before so I am familiar with the languages. I am not really sure which one would lend itself better to the application I have to write.
I am required to scan the message logs for possible break in attempts. If I use shell scripting... (3 Replies)
Discussion started by: mojoman
3 Replies
3. Shell Programming and Scripting
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies
4. Shell Programming and Scripting
Hi,
I have general question: i have good working Perl script with .pl extension, and now I have to migrate all to another Linux box, and I was told that I can use only shell scripting, so I'm not sure how different those two things are, will it work without any changes . Is there anything smart I... (6 Replies)
Discussion started by: trento17
6 Replies
5. What is on Your Mind?
Hi all,
I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first.
Can you please help me determine which one to... (14 Replies)
Discussion started by: Pouchie1
14 Replies
6. Shell Programming and Scripting
Hai ! I am doing a research on Bioinformatics and a part of the code in perl have to be converted to shell scripting. I am new to shell programming. Pls. kindly help me to convert this code to shell script though it is somewhat lengthy.
PLS KINDLY HELP ME. THANKS IN ADVANCE.
my @FreeEnergy =... (1 Reply)
Discussion started by: kswapnadevi
1 Replies
7. What is on Your Mind?
Gents,
I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies
8. Web Development
i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies
9. Shell Programming and Scripting
This is the ldf file
dn: sdcsmsisdn=1000000049,sdcsDatabase=subscriberCache,dc=example,dc=com
objectClass: sdcsSubscriber
objectClass: top
postalCode: 29600
sdcsServiceLevel: 10
sdcsCustomerType: 14
givenName: Adelia
sdcsBlackListAll: FALSE
sdcsOwnerType: T-Mobile
sn: Actionteam... (1 Reply)
Discussion started by: LinuxFriend
1 Replies
10. Shell Programming and Scripting
Please tell me how to convert below program from shell script to perl. Same commands need to use in shutdown, just need program help for startup.
export ORACLE_BASE=/home/oracle1
lsnrctl start lndb1
sqlplus '/ as sysdba'
startup; (2 Replies)
Discussion started by: learnbash
2 Replies
LEARN ABOUT SUNOS
ftpconversions
ftpconversions(4) File Formats ftpconversions(4)
NAME
ftpconversions - FTP Server conversions database
SYNOPSIS
/etc/ftpd/ftpconversions
DESCRIPTION
When the FTP Server, in.ftpd(1M), receives the retrieve (RETR) command, if the specified file does not exist, it looks for a conversion to
change an existing file or directory of the same base name into the format requested, subject to the ftpaccess(4) compress and tar capabil-
ities.
The conversions and their attributes known by in.ftpd(1M) are stored in an ASCII file of the following format. Each line in the file pro-
vides a description for a single conversion. The fields in this file are separated by colons (:).
%s:%s:%s:%s:%s:%s:%s:%s
1 2 3 4 5 6 7 8
The fields are described as follows:
1 Strip prefix.
2 Strip postfix.
3 Addon prefix.
4 Addon postfix.
5 External command.
6 Types.
7 Options.
8 Description.
The Strip prefix and Addon prefix fields are not currently supported.
The Strip postfix and addon postfix fields are extensions to be added to or removed from the requested filename in attempting to produce
the name of an existing file or directory. When the attempt succeeds, the FTP Server runs the external command associated with the conver-
sion. The magic cookie %s in the argument is passed to the command, replaced with the name of the existing file or directory.
External command is the absolute pathname of a command to run followed by the appropriate options to carry out the conversion. The standard
output of the command is sent back in response to the RETR (retrieve) command. For anonymous and guest users to be able to execute the com-
mand, it must be present in their chroot'd hierarchy along with any necessary dynamic libraries.
Types specifies the conversion type. The following values are recognized:
T_ASCII ASCII transfers are allowed of a file produced by the conversion.
T_DIR Directories can be converted.
T_REG Regular files can be converted.
Options are checked against the ftpaccess(4) compress and tar capabilities and are recorded in the special-action-flag field that is writ-
ten to the FTP Server logfile. See xferlog(4). The following options are supported:
O_COMPRESS conversion compresses
O_TAR conversion archives
O_UNCOMPRESS conversion uncompresses
You can specify more than one option by using "|" to separate options. For example, O_TAR|O_COMPRESS specifies that the conversion archives
and compresses.
Description is a one word description of the conversion that is used in error messages returned to the FTP client.
Lines that begin with a # sign are treated as comment lines and are ignored.
EXAMPLES
Example 1: Compressing a Regular File for Transfer
The following example specifies a conversion which generates filename.Z by compressing an existing file filename. The conversion can only
be applied to regular files, not directories, and the absence of T_ASCII prevents the resulting file from being transferred in ASCII mode.
: : :.Z:/usr/bin/compress -c %s:T_REG:O_COMPRESS:COMPRESS
Example 2: Uncompressing and Transferring in ASCII Mode
The following example specifies a conversion that takes filename.Z and uncompresses it to produce filename, which then can be transferred
in ASCII mode.
:.Z: : :/usr/bin/compress -cd %s:T_REG|T_ASCII:O_UNCOMPRESS:UNCOMPRESS
FILES
/etc/ftpd/ftpconversions
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWftpr |
+-----------------------------+-----------------------------+
SEE ALSO
ldd(1), in.ftpd(1M), ftpaccess(4), xferlog(4), attributes(5)
SunOS 5.10 1 May 2003 ftpconversions(4)