10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have this line of code on my script
#!/bin/sh
#enable the environment variable thru profile
. .profile
when i run the script it was unable to find the .profile
sh ChgPwd.sh
ChgPwd.sh: line 4: .: .profile: file not found
the file .profile exists
ls -altr .profile... (2 Replies)
Discussion started by: wtolentino
2 Replies
2. Shell Programming and Scripting
Hi,
I login to Linux and Solaris server using my personal user account "ms1104" .
I have several aliases set in my profile.
Later i need to switch to another user account i.e. "wlsuser" and below is the command i use
sudo -u wlsuser -s -H
i do not have authority to modify the... (1 Reply)
Discussion started by: mohtashims
1 Replies
3. UNIX for Advanced & Expert Users
Hi All,
I have a doubt that can we call under whatever scripts we mention in crontab -e into .profile .
Because every weekend my server is going to restart so, my doubt whether crontab -e will automatically run my scripts or manually we have to save the crontab -e again?
If that crontab... (3 Replies)
Discussion started by: ksrivani
3 Replies
4. Shell Programming and Scripting
Hello Gurus
Can anyone please let me know how to call .profle file in perl script
When I am calling the .profile file its giving error
Shall I create unix script which has .profile command and call perl script internally (2 Replies)
Discussion started by: Pratik4891
2 Replies
5. Infrastructure Monitoring
Hello
I really wonder what's trap in etc/profile and in each user .profile.
I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing.
I want to know ...
1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies
6. Infrastructure Monitoring
Hello,
I have a problem with package and name space.
require "/Mehran/DSGateEngineLib/general.pl";
use strict;
sub System_Status_Main_Service_Status_Intrusion_Prevention
{
my %idpstatus;
my @result;
&General_ReadHash("/var/dsg/idp/settings",\%idpstatus);
#print... (4 Replies)
Discussion started by: Zaxon
4 Replies
7. UNIX for Advanced & Expert Users
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?
Thanks
Muru (2 Replies)
Discussion started by: muru
2 Replies
8. Shell Programming and Scripting
Hello all,
I want to call my users .profile in cron?
I understand that i have to do it explicitly in crontab entry.
How can we do it ? How can i write a simple script calling it?
Thanks & Regards
Abhijeet (15 Replies)
Discussion started by: abhijeetkul
15 Replies
9. Programming
Hi.
I have a C program that is using the **environ pointer and I am trying to set up aliases for a system("/bin/ksh") call. This works for other environment variables but not for the aliases. Does anyone know if this can be done? Thanks ahead of time. (1 Reply)
Discussion started by: mluey61
1 Replies
10. UNIX for Dummies Questions & Answers
hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix.
please explain..
thanks (4 Replies)
Discussion started by: yls177
4 Replies