Search Results

Search: Posts Made By: RoshniMehta
1,639
Posted By Yoda
Have a look at script command that can help you...
Have a look at script command that can help you make record of a terminal session:

script manual (https://www.unix.com/man-page/opensolaris/1/script/)
7,767
Posted By dennis.jacob
Either you can - source the .profile before...
Either you can

- source the .profile before calling the script
eg: * * * * * ./.profile; sh script.sh

- or, call the .profile inside your script.
7,767
Posted By zaxxon
Make sure your environment is the same by...
Make sure your environment is the same by sourcing your .profile (wherever your needed variables are set in) etc. when starting it via cron, like

. ~/.profile

# here comes the script...


If...
1,437
Posted By era
It expands to the command-line parameters passed...
It expands to the command-line parameters passed to the script. However, it's wrong; it should be in double quotes, like "$@"

vnix$ cat >script
echo args: "$@"
for f in "$@"; do echo "arg: $f";...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy