Questions tagged [command]

186 questions
1
vote
0 answers

Open url with parameters with cmd

I changed default program for .docx and set to myopenwith.bat So when I clicked to any docx, it will open with myopenwith.bat myopenwith.bat has this code: start firefox…
Aleksandar
  • 11
  • 1
1
vote
2 answers

How to use expect command with .run program in replace for yes command

The program.run I'm trying to run: Asks 2 questions that need the answer "y" Asks a third question at the end which is "press any key to exit" In addition, it doesn't have the "-y" option. Only this options: FreeFileSync installation…
acgbox
  • 376
  • 1
  • 5
  • 21
0
votes
1 answer

Find out who hold the fd of one file which has been deleted?

Currently, I run a Java program will call some C++ library, and I find that after some files have been deleted, there still some thread holds the fd such as 3515991655 0 lr-x------ 1 user group 64 Jul 29 10:52 /proc/81263/fd/658 ->…
0
votes
1 answer

Powershell send-mailmessage logs

I need to debug Send-MailMessage command. In linux, I can see the logs of sending mail, via tail -f. There is an option to see the logs of this command? I want to send mail to an external domain, it runs but without any status.
Amir Damirov
  • 99
  • 1
  • 4
0
votes
1 answer

Java installation error on Debian 8

I followed the instructions from this website: https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-debian-8 When I install jre and jdk it says: Reading package lists... Done Building dependency tree Reading state…
Dominik
  • 1
  • 1
0
votes
1 answer

Move one file in a folder to another folder and rename?? Cmd?

I am hoping to get some help with this, I am thinking of using Command Line to do the following: Move ONE file in a folder (that has hundreds of files) to a new folder (new folder is the folder this folder is IN, so up one directory) Rename the…
0
votes
1 answer

IFTTT segmentation fault

I'm doing an assignment for school using getop with ocelot, I have to count words and count the substrings in the document. I have the word counting working but I was not able to do the substring, I can only get to read/display what substring the…
Arturo
  • 103
  • 4
0
votes
0 answers

Mail command in AWS EC2 ubuntu instance is sending emails to spam folder

Recently, i have upgraded my EC2 ubuntu instance from t2.micro to t2.medium in AWS to fight space related issues. Though the upgrade went well, mail command which was working fine in t2.micro started sending emails to my spam folder now. I have…
0
votes
4 answers

Problem with Outlook sending HELO / EHLO

i'm having a very strange problem - there's a client running outlook 2003 with 2 email accounts. they're configured exactly the same (except username/password), they both have "authentication-on-send" enabled. the weird thing: one account can send,…
Fuxi
  • 184
  • 2
  • 11
0
votes
1 answer

Linux Script command interpreting not working remotely

I have the below linux script(simplified): RUN_JAVA=$(which java) if [ -z $RUN_JAVA ] then echo "No Java found!" >> /tmp/output.txt else echo $RUN_JAVA >> /tmp/output.txt fi When I run it at the same host,runs perfectly,outputs to…
selman
  • 103
  • 3
0
votes
1 answer

When I use uniq -u I get no outpput, but why?

When I run the following command, I expect to get the ip addresses of ASG member instances: current_servers=$(aws ec2 describe-instances --instance-ids $(aws autoscaling describe-auto-scaling-groups --auto-scaling-group-names "${asgname}" --region…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
0
votes
2 answers

WSManCredSSP setting cannot be enabled

Im trying to set up 2 Hyperv 2016 Server hosts on my local network for remote access, but I just cant get them going. Servers are configured properly - both running: PSRemoting (also tried -skipnetworkprofilechecking) Enable-WSManCredSSP -Role…
Jon
  • 167
  • 4
  • 15
0
votes
1 answer

find command with type and max date age

Is there a find command flag where I can set a max date age for files. Example would be only files within the last 2 days Also, a command I was given was -type f what does -type f mean?
tjcinnamon
  • 205
  • 1
  • 8
0
votes
0 answers

Remove com port using devcon for loop

I started learning command line yesterday. My supervisor asked me to delete extra com ports. I was trying to delete com port using command line. Right now I am using devcon.exe that is a part of windows WDK. I have tried using devcon findall =ports…
Mr_U4913
  • 101
0
votes
3 answers

Enable confirmation for commands with force flag

Is there any option to enable confirmation for the rm -rf . We had an alias setup for rm=rm -i so whenever we delete a file it asks for confirmation but when -f flag is supplied it will not asks for confirmation. So is there any option to ask…
Geo
  • 575
  • 3
  • 9
  • 23