12-02-2005
How is the .profile file comes into play when we run a scripts ?
How is the .profile file comes into play when we run a scripts ?
10 More Discussions You Might Find Interesting
1. 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
2. Solaris
The cronusers .profile doesn't seem to get call when running things in the cron. What am I doing wrong? (1 Reply)
Discussion started by: Schoey
1 Replies
3. Shell Programming and Scripting
Hi All,
I am tring to excute a SSH trust command from a script which is invoked by crontab.
Details:
Crontab file contains the following line:
15 00 * * * /users/dummy_user/dummy_script1.sh
dummy_script1.sh contains the following line:
SSH -1 server_2... (4 Replies)
Discussion started by: suman82
4 Replies
4. 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
5. Shell Programming and Scripting
Good morning. I am searching for "how-to"'s for some particular questions:
1. How to write a script in HP-UX 11.
2. How to schedule a script.
3. How to "call" scripts from the original script.
4. How to su to another user from within a script.
This is the basics of what the... (15 Replies)
Discussion started by: instant000
15 Replies
6. 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
7. 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
8. AIX
My first post evidently did not materialize so I posted it again:
Runnning a cron job every 5 mins to send data files to a state facility.
My original cron entry at worked fine:
01,06,11,16,21,26,31,36,41,46,51,56 * * * * /home/sftpuser/stateinoc-from-appname.ksh
Somewhere I have a... (1 Reply)
Discussion started by: Skyybugg
1 Replies
9. Shell Programming and Scripting
Hello all,
Please my shell is ksh. I created .profile such that users can pick environments they want to use:
echo Select your Environment!!
echo " 1. Nigeria DEV"
echo " 2. UEMOA DEV"
echo " 3. CEMOA DEV"
echo "Make your choice : \c"
read choice
if
then
...
fi
if
then (6 Replies)
Discussion started by: mofaloks
6 Replies
10. 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
LEARN ABOUT CENTOS
tuned.conf
tuned.conf(5) tuned.conf file format description tuned.conf(5)
NAME
tuned.conf - Tuned profile definition
DESCRIPTION
This man page documents format of Tuned 2.0 profile definition files. Profile is stored in /etc/tuned/<profile_name>/tuned.conf or in
/usr/lib/tuned/<profile_name>/tuned.conf file where the /etc/tuned/ directory has higher priority.
The tuned.conf configures the profile and it is in ini-file format.
MAIN SECTION
The main section is called "[main]" and can contain following options:
include=
Includes config file defined as value. Config file can be defined as full path or by the profile name to which it belongs. If this
parameter is present, the histogram will be shown at the end of the measurement.
PLUGINS
Every other section defines one plugin. The name of the section is used as name for the plugin and is used in logs to identify the plugin.
There can be only one plugin of particular type tuning particular device. Conflicts are by default fixed by merging the options of both
plugins together. This can be changed by "replace" option.
Every plugin section can contain following sections:
type= Plugin type. Currently there are following plugins: disk, script, net, cpu, eeepc_she.
devices=
Comma separated list of devices which should be tuned by this plugin instance. If you omit this option, all found devices will be
tuned.
replace=1
If there is conflict between two plugins (meaning two plugins of the same type are trying to configure the same devices), then the
plugin defined as last replaces all options defined by the previosly defined plugin.
Plugins can also have plugin related options.
EXAMPLE
[main]
# Includes plugins defined in "included" profile.
include=included
# Define my_sysctl plugin
[my_sysctl]
type=sysctl
# This plugin will replace any sysctl plugin defined in "included" profile
replace=1
# 256 KB default performs well experimentally.
net.core.rmem_default = 262144
net.core.wmem_default = 262144
# Define my_script plugin
# Both scripts (profile.sh from this profile and script from "included"
# profile) will be run, because if there is no "replace=1" option the
# default action is merge.
[my_script]
type=script
script=profile.sh
SEE ALSO
tuned(8)
AUTHOR
Written by Jan Kaluza <jkaluza@redhat.com>.
REPORTING BUGS
Report bugs to <jkaluza@redhat.com>.
Jan Kaluza 13 Mar 2012 tuned.conf(5)