Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8021593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:01:57+00:00 2026-06-04T22:01:57+00:00

I am launching the SSH utility bundled with Cygwin, using ProcessBuilder Class in Java.

  • 0

I am launching the SSH utility bundled with Cygwin, using ProcessBuilder Class in Java. Everything works fine. I connect to a linux server over SSH, can run commands and read the output.

However, whenever the output is returned, it only happens after login on the server and running commands e.g directory listing ls, returns something like this:

InputStream: root@myserver:/scripts/common# ls 
InputStream: [00m[00mA1-4.yaml[00m                            [01;32mscip-1.2.0.linux.x86_64.gnu.opt.qso[00m
InputStream: [00madditional_files.txt[00m                 [01;32mscip-1.2.0.linux.x86_64.gnu.opt.spx[00m

As far as I have figured out, it is only happening with file listing command. For example when I am running other commands like time, etc it shows normal output.

Can you suggest what it is that is appending these random characters to the filename?

I have even tried to use UTF8 encoding but nothing changes. When I directly login using the command line, I do not see those results. However, the cmdline shows file names in colored values. Is it that there is some additional information added which is not ASCII?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:01:59+00:00Added an answer on June 4, 2026 at 10:01 pm

    Using the command ls --color=none solves this problem.

    This happens because by default ls command returns file names which have different color code values appended to them. This link gives more information.

    Following picture describes the difference between ls and ls --color=none:

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I noticed that the launching of Java applets using deployJava.js seems to have stopped
Am using nsis for launching my java application. I wanted to show a window
I'm launching wkhtmltopdf from within my Java app (part of a Tomcat server, running
When launching java -cp h2-1.3.161.jar org.h2.tools.Server it always opens the console in a browser.
My app works fine when launching from XCode, and it starts back up from
After launching an application using the Process class I'd like to make that window
We are launching a site that is media heavy and looking at using silverlight,
I am launching a Python script from the command line (Bash) under Linux. I
When launching iisexpress using iisexpress /path:D:\Foo /port:9000 how can I specify what file it
I'm launching my VB.NET application from the command line and then using the function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.