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

  • Home
  • SEARCH
  • 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 7962467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:20:34+00:00 2026-06-04T05:20:34+00:00

I am currently using popen to execute a command via C, but it is

  • 0

I am currently using popen to execute a command via C, but it is not coming out properly so I was just wondering If I was doing anything wrong?

the original command (previously called via a bash script but I am now making a C program to call it instead) is

   /home/minecraft/remoteclient01a.py "sendmsgtogroup staff §f(§bSTAFF§f) * $colourcode$MCEXEC_PLAYERNAME§f $MCEXEC_ARGS" 

and the way I am trying to execute it in C is

   snprintf(command, 10000, "/home/minecraft/remoteclient01a.py 'sendmsgtogroup staff  §f(§bSTAFF§f) * %s§f %s'", pname, parg);
   popen(command, "w");

but for someone reason the last variable (parg) does not seem to be included when the command is executed, If someone could let me know if I am messing something up i would really appreciate it, thanks!

  • 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-04T05:20:35+00:00Added an answer on June 4, 2026 at 5:20 am

    oh wait, it appears that an irc listener was not configured to pick it up properly which put up the illusion that nothing was being passed through, is actually working fine though, thanks for your input though! “is embarrassed”

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

Sidebar

Related Questions

I'm currently launching a programme using subprocess.Popen(cmd, shell=TRUE) I'm fairly new to Python, but
I'm currently using os.popen() but have been recommended to use subprocess.popen() instead. Any ideas
Currently using: @^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$ How can i make http:// not compulsory but if it does
I'm trying to execute a program on a file using the popen() command on
Currently using Google Analytics as a supplement to our paid tracking software, but neither
Currently I am using this: def _get_mac_ver(): import subprocess p = subprocess.Popen(['sw_vers', '-productVersion'], stdout=subprocess.PIPE)
currently using spring 'exposedContextBeanNames' to allow me to display properties in my view but
Im currently using jquery to link all td's to the edit link but i
I'm not exactly sure how to properly debug this but have tried a few
Currently using the HTTPServletRequest class and specifically the .getQueryString method to retrieve an inputted

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.