Sponsored Content
Top Forums UNIX for Dummies Questions & Answers AIX to Linux command difference Post 302956065 by aster007 on Friday 25th of September 2015 12:23:57 PM
Old 09-25-2015
AIX to Linux command difference

Moving from AIX 6.1 to RHEL 6.6, I have noticed a few command differences.
One that has been causing issue is a simple echo command when I have to use it this way ->
Code:
"echo -e"

On the AIX it outputs to "-e" but since RHEL has "-e" as an option for echo and hence it outputs to blank here.
All the code needs to be updated unless anyone here has a better option that you may have found in similar scenario.
Please suggest.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Linux watch command on AIX?

On Linux I could use the `watch` command to loop a command X times. Is there a similar command on AIX? If not, is there a way to write a loop on the command line to do this? Linux: watch -d -n 60 'db2 list applications show detail | grep Connect | wc -l' AIX: ??? (2 Replies)
Discussion started by: djschmitt
2 Replies

2. UNIX for Dummies Questions & Answers

How to convert this linux command to Unix AIX?

How to convert this linux command to Unix AIX? I have tried this command and work in CentOS: tail --line=0 --retry -f --follow=name --max-unchanged-stats=1 logFile.log But in AIX, the tail haven't "--retry" "--follow=name" option. Thanks in advance. (1 Reply)
Discussion started by: chris13work
1 Replies

3. AIX

difference between Aix V5.2 and V5.3

Can anybody help me in giving some quick tips... on the updates on this new version AIX V5.3?? (4 Replies)
Discussion started by: gsabarinath
4 Replies

4. AIX

difference between AIx and Linux and Unix

Sir , Can any body explain the difference between linux , Unix and AIx on command Reference all the command on AIx and unix is same or not please reply (2 Replies)
Discussion started by: arif185
2 Replies

5. UNIX for Dummies Questions & Answers

su command difference between unix and linux

Hello all the su with -l option is running normal with linux but when i try to run it on unix AIX 5.2.7 it's not working with -l option any help (6 Replies)
Discussion started by: islam.said
6 Replies

6. Programming

Difference between cp and mv linux command

Hi, I am facing one problem only with mv command not with cp command. I have a test program #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mount.h> #include <fcntl.h> #include <errno.h> int sync_file(char *file) { FILE *fp=NULL;... (6 Replies)
Discussion started by: dharshini123
6 Replies

7. Shell Programming and Scripting

Command script to be run in both AIX and LINUX

Hi, Script : #!/usr/bin/ksh echo "\n\t\t\t\t Enter your Name : \c" read name ############################## I ran the script in LINUX Enter your Name : abcdefghijklmnopqrstuvwxyz I ran the script in AIX Enter your Name : opqrstuvwxyz < I'm not able to see the... (2 Replies)
Discussion started by: arjunprathap
2 Replies

8. Shell Programming and Scripting

AIX and HP-UX equivalent of Linux stat command

To list file permission/access right in octal format, linux has a command 'stat'. For example, we can use the followin - stat -c %a `find . -type f Is there any equivalent command in AIX and HP-UX to give the same result as linux 'stat' command? Please advice. (3 Replies)
Discussion started by: atanubanerji
3 Replies

9. UNIX for Dummies Questions & Answers

AIX and Linux difference (character set)

I'm having a problem regarding the encoding of my files in Linux and AIX. I have a file which can be viewed both in Linux and AIX (via NetApp mount). When I checked the encoding, they have difference. In Linux, the file is encoded as ISO-8859 text. (checked by using "file" command).... (1 Reply)
Discussion started by: Jin_
1 Replies

10. Red Hat

Difference b/n AIX & Red Hat Linux Commands

Hi All, The scripts developed in AIX can be executed in Red Hat Linux too? Because, we are migrating OS from AIX to LINUX. Will there be any differences in commands? Thanks in advance!!! Regards, U (2 Replies)
Discussion started by: unme
2 Replies
cdde.xml(5)															       cdde.xml(5)

NAME
cdde.xml - Configuration file for cdde DESCRIPTION
When cdde is run for the first time, an example xml configuration file (~/.cdde.xml) is created for you: <?xml version="1.0"?> <cdde delay="5000000"> <drive path="/dev/cdrom"> <audio command="echo An audio cd was inserted."/> <data command="echo A data cd was inserted."/> <dvd command="echo A dvd was inserted."/> <vcd command="echo A vcd was inserted."/> <svcd command="echo A svcd was inserted."/> <blank command="echo A blank cdr/dvdr was inserted."/> <mixed command="echo A mixed (audio/data) cd was inserted."/> </drive> </cdde> This default file is not very useful, and so I suggest you to edit it to your needs before running cdde again. You may add as many drive entries, or commands as you like. If multiple entries are found for a type of disc then all entries will be run in the order they are found. The specific device in use can be passed to the command with one of the following special tags: %dev% - is replaced with the device name of the cdrom that just had a disc inserted %mnt% - is replaced with the listed mount point for the cdrom that just had a disc inserted Note: %mnt% is determined through your fstab (usually located in /etc) file. If you do not have a listing for each <drive> in the fstab this will cause problems. This way, you can tell your video player which device to use when playing a VCD, for example. EXAMPLE
This is an example of ~/.cdde.xml file: <?xml version="1.0"?> <cdde delay="5000000"> <drive path="/dev/cdroms/cdrom0"/> <audio command="xmms %mnt%"/> <data command="mount %mnt%"/> <dvd command="xterm -iconic -e mplayer -fs -xineramascreen 1 -dvd 1"/> <vcd command="xterm -iconic -e mplayer -fs -xineramascreen 1 -vcd 1"/> <svcd command="xterm -iconic -e mplayer -fs -xineramascreen 1 -vcd 1"/> <blank command="gcombust"/> <mixed command="mount %mnt%"/> </drive> </cdde> FILES
~/.cdde.xml SEE ALSO
cdde(1) AUTHORS
Eric Lathrop <eric@ericlathrop.com> Stanislav Maslovski <stanislav.maslovski@gmail.com> WEBSITE
For the latest release of cdde, see: http://cdde.sourceforge.net/ Eric Lathrop 0.3.1 cdde.xml(5)
All times are GMT -4. The time now is 10:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy