What does the option "-J-d64" of the jmap heap dump utility do?
By : user3698334
Date : March 29 2020, 07:55 AM
like below fixes the issue The man page says , Snippet of jmap's help message: code :
λ > jmap
Usage:
jmap [option] <pid>
(to connect to running process)
jmap [option] <executable <core>
(to connect to a core file)
jmap [option] [server_id@]<remote server IP or hostname>
(to connect to remote debug server)
where <option> is one of:
<none> to print same info as Solaris pmap
-heap to print java heap summary
... stuff ...
-J<flag> to pass <flag> directly to the runtime system
λ > java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available (implies -server, only for x86_64)
|
expect returning error "Option requires an argument" when argument given
By : user2480030
Date : March 29 2020, 07:55 AM
To fix the issue you can do I have this code: , Take out -c when passing the expect script in a here-doc code :
send "put dirname $0/$2/$3 /var/www/localhost/htdocs/dev1.site.org/$2/$3\r"
#!/bin/sh
if [ "upload" == "$1" ];then
expect <<END_EXPECT
set timeout -1
spawn sftp -i /Users/myuser/.ssh/private.key root@dev.site.org
expect "sftp>"
send "put $(dirname $0)/$2/$3 /var/www/localhost/htdocs/dev1.site.org/$2/$3\r"
expect "%100"
send "quit\r"
expect eof
END_EXPECT
elif [ 'download' == "$1" ];then
expect <<END_EXPECT
set timeout -1
spawn sftp login_name@1.2.3.4
expect "[Pp]assword:"
send "login_password\r"
expect "sftp>"
send "get /remote_path/$2/$3 $(dirname $0)/$2/$3 \r"
expect "%100"
send "quit\r"
expect eof
END_EXPECT
fi
case "$1" in
upload)
cmd="put $(dirname $0)/$2/$3 /var/www/localhost/htdocs/dev1.site.org/$2/$3"
;;
download)
cmd="get /remote_path/$2/$3 $(dirname $0)/$2/$3"
;;
esac
echo "$cmd" | sftp -i /Users/myuser/.ssh/private.key root@dev.site.org
|
Difference between terms: "option", "argument", and "parameter"?
By : Áron Fehér
Date : March 29 2020, 07:55 AM
this one helps. A command is split into an array of strings named arguments. Argument 0 is (normally) the command name, argument 1, the first element following the command, and so on. These arguments are sometimes called positional parameters. code :
$ ls -la /tmp /var/tmp
arg0 = ls
arg1 = -la
arg2 = /tmp
arg3 = /var/tmp
$ ls -la /tmp /var/tmp
option1= -l
option2= -a
$ ls -la /tmp /var/tmp
parameter1= /tmp
parameter2= /var/tmp
$ ls -l -- -a
option1 = -l
parameter1 = -a
$ busybox ls -l
command = busybox
subcommand = ls
subcommand option1 = -l
$ git --git-dir=a.git --work-tree=b -C c status -s
command = git
command option1 = --git-dir=a.git
command option2 = --work-tree=b
command option3 = -C
subcommand = status
subcommand option1 = -s
|
How to fix" ERROR-invalid argument/option - 'Live' " in this code?
By : user3005902
Date : March 29 2020, 07:55 AM
I hope this helps you . The reason for the error message is that you've used a wrong syntax for the filter expression of tasklist: tasklist /nh /fi "imagename eq "DesktopHut Live v5.0.0.exe" " code :
Image Name
=========================
DesktopHut Live v5.0.0.ex
tasklist /fi "imagename eq DesktopHut Live v5.0.0.exe" /fo csv | find /i "DesktopHut Live v5.0.0.exe" >nul
tasklist /fo csv | find /i "DesktopHut Live v5.0.0.exe" >nul
|
where is the option of setting longer curl argument list threshold to avoid "Argument list too long" error
By : James Richmond
Date : March 29 2020, 07:55 AM
seems to work fine The shell code is: #!/bin/sh body="............a lot of thing................"; curl -Ss -d"${body}" "xx.xx.com" , Store your body data in a file. and use
|