Search Results

Search: Posts Made By: r_W213
8,732
Posted By r_W213
Help needed
Hi ,

Thanks for your reply. One more doubt

Does “cd \`/usr/bin/dirname $0\` cd to script directory” will the same change the directory or jus gives u the directory name?

Regards,
Ranga
8,732
Posted By r_W213
Can anyone explain plz
HI,

Can anyone explain to me how does the following command work - >

current_dir=`cd \`/usr/bin/dirname $0\` && pwd`

Regards,
Ranga
4,484
Posted By r_W213
a query
Will this command `cd \`/usr/bin/dirname $0\` && pwd` change the directory or jus find the directory!!!

Regards,
Ranga
4,484
Posted By r_W213
crontab help
hi,

Thanks for your prompt response. Will this work in csh and bash shells ?

I am executing the script in csh.

Regards,
Ranga
4,484
Posted By r_W213
hi, Which <file> is giving me “./<file>” ...
hi,

Which <file> is giving me “./<file>” as o/p


Regards,
Ranga
4,484
Posted By r_W213
crontab help
Hi
i tried the command
current_dir=`cd \`/usr/bin/basename $0\` && pwd`
I am getting the following. Can you please help me.

It is throwing a err: “/ss.sh: cd: ss.sh: Not a directory”
...
4,484
Posted By r_W213
Crontab help
hi,

I run a .sh file using crontab. I need to know the path of the file . Previously when I run the file alone , i used "pwd" but now when using crontab it gives the temp directory of the file. ...
Showing results 1 to 7 of 7

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