home folder

Latest response

Hello,

We have some scripts from Unix-AIX servers that we copied over to our Linux server. Somehow they are failing because of the variable /u, is there a way to make an alias to substitute this to /home?

Unix script:

# Run @ 1:55 pm Monday thru Friday
55 13 * * 1,2,3,4,5 /u/ttracer/send/init_send.bsh

Responses

If I understand correctly, a symbolic link might help you.
ln -s /home /u

Thanks for the quick reply Robert.
This worked.

Librado,

I'm curious to know why you do not want to change the cron job to refer to '/home'... instead? The excellent suggestion by Robert will work, but I was just curious.

Most likely, the scripts themselves also use /u.

Siem,

True. If the scripts also use '/u' and the same scripts are used on both AIX and RHEL servers, it makes sense to keep their content the same and instead add the symlink. It could be useful to add a note about the symlink to the script, so that anyone using it for the first time on a RHEL host knows they need to create the symlink.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.