10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there a way to run the profile which is not in $HOME directory? then whats the command for that? (1 Reply)
Discussion started by: SKhan
1 Replies
2. UNIX for Advanced & Expert Users
i've created a custom profile that contains custom functions and alias' etc...
it's called .jason_profile
currently we ssh to the server then load the profile manually from the cmd line i.e
. /home/jack/.jack_profile
we want to be able to ssh and source the profile automatically but... (4 Replies)
Discussion started by: jack.bauer
4 Replies
3. Shell Programming and Scripting
Hi,
I'm tryin to write a script that will collect information about a remote servers, put them into variables and print them to screen.
# /usr/bin/bash
ls $1 > /dev/null 2>/dev/null
if
then
echo "$1 is file"
for server in $(cat $1)
do
# echo $server
... (5 Replies)
Discussion started by: moshesa
5 Replies
4. HP-UX
Greetings, i'm currently having issues in successfully executing a script from one server to other, and i'm cracking my nut in understanding why. Let's get started with the default info:
Server A:
briozzo@A:/home/briozzo $ uname -a
HP-UX A B.11.31 U ia64 2787251109 unlimited-user license
... (3 Replies)
Discussion started by: nbriozzo
3 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I am trying to execute a command using ssh as below.
ssh user123@servername "which ctmcontb"
It is gving the error as below
no ctmcontb in /usr/bin /usr/sbin /opt/sysadm/bin
Not sure from where the PATH is getting picked up.
But When I login direclty to the server I am... (5 Replies)
Discussion started by: anilreddy103
5 Replies
6. AIX
How do I get a command like "ssh Theuser@host date" to execute the /home/Theuser/.profile before executing the "date" command? (5 Replies)
Discussion started by: IL-Malti
5 Replies
7. Shell Programming and Scripting
Hi
I am trying to send a command over ssh with a parameter but the shell fails to expand the command properly any ideas what am i doing wrong with this.
This is ssh on AIX
for i in 71 72 73 74 75 do
for server in server1 server2 do
somestr="Some String"
echo "$server... (3 Replies)
Discussion started by: xiamin
3 Replies
8. Shell Programming and Scripting
Hi all,
I am trying to run a script which is expected to do:
on the remote machine,
There are two directories /export/home/abc1,/export/home/abc2
i am trying to do,
ssh SERVERNAME "for i in `ls -l /export/home/abc*|awk '{print $9}'`; do cd $i; ls -l; done"
But its not working ,iam... (11 Replies)
Discussion started by: Jartan
11 Replies
9. Shell Programming and Scripting
Hi,
How can i execute .profile from a perl script
I need this - i am trying to run perl script from crontab
and it looses the environment variables
Please provide help
Your help is greatly appreciated
Thanks (1 Reply)
Discussion started by: prekida
1 Replies
10. UNIX for Dummies Questions & Answers
AIX 4.3.3
I am having trouble when logging into the system as userA. It does not seem that the $HOME/.profile is executing. I have checked to make sure the .profile exists in userA's home directory, belongs to userA, and has the file permissions 740. I know the .profile is not being executed... (6 Replies)
Discussion started by: jalburger
6 Replies