I have an AIX production server, there is a script A.sh
running on it.
i have no root access for this server.
i want to find out argument passing value of this A.sh
script.
How can i get this value?
Is there any provision inside /proc/processID
?
The following is not working. I tried by generating a script:
echo "Hello $1 $2 $3"
while [ 1 ]
do
sleep 2
echo $$
done
Then I run this script by
test.sh 1 2 3
Output:
$ cat /proc/3107/cmdline
-bash$
As per suggestion by @Cyrus suggestion I expect
1 2 3
which are the arguments I passed in, but it is not working like that.