Questions tagged [rc]

An "rc" file is a file read at startup of a program. It is also the name of the Plan 9 Shell.

Historically, in the days when Unix and other software was distributed on tapes, a tape archive often contained a file named "rc" containing run commands or run code to compile and install the software.

rc, the Plan 9 Shell

257 questions
0
votes
1 answer

Font size rendering is different depending upon login using Gimp?

I am using Gimp python-fu plugin. The plug-in written correctly renders a text block: (GIMP_UNIT_POINT = 3) titleBlockLayer = pdb.gimp_text_layer_new(img, title, , 40, GIMP_UNIT_POINT) but only if gimp is invoked from the X window…
Chrys G
  • 99
  • 10
0
votes
1 answer

QMake / jom force extra MIDL compiler to run before RC

I'm converting an old OCX project to QMake (as it's getting the "new" standard in my company). In my Button.pro file, I add the MIDL compiler by the means of idl_c.output = $${DESTDIR}/${QMAKE_FILE_BASE}.tlb idl_c.input = IDL idl_c.commands =…
NonoxX
  • 134
  • 10
0
votes
0 answers

start Chromium automatically after boot on Linux

I have a Linux setup attached to an HDMI cable and I want to start Chromium automatically after boot (before login) I tried modifying the rc.local file, adding: /usr/bin/chromium --no-sandbox --touch-events=enabled --kiosk http://192.168.1.2:8080…
Gianluca Ghettini
  • 11,129
  • 19
  • 93
  • 159
0
votes
1 answer

Reading RC switch input from i-bus using arduino

I am using an Arduino Due to read i-bus data from a Flysky receiver. I am using the code from https://gitlab.com/timwilkinson/FlySkyIBus to read the data. Reading data from all channels is very straight forward, except for any switch input. I can't…
Drona
  • 107
  • 11
0
votes
0 answers

Centos 7 - Script not runing from init d - manually with & it starts in background

I have created script in init.d /etc/init.d/startSanic #!/bin/bash cd /opt/horses ./startSanic.sh & startSanic is with permissions 777 startSanic.sh is with permissions 755 I intentionally created two scripts because only if I start script…
Veljko
  • 1,708
  • 12
  • 40
  • 80
0
votes
0 answers

Sourcing bashrc executes a function

I'm trying to define a convenience function to my ~/.bashrcfile and then source the file. However, when I source ~/.bashrc it executes the function I defined. What am I doing wrong? Here's the function: # tensorflow object detection train…
Austin
  • 6,921
  • 12
  • 73
  • 138
0
votes
1 answer

Mono WinFroms app won't run on boot

I am new to Raspbian. I have a mono WinForms app on Raspbian on RPi + official 7" display. It works fine when I execute start-app.sh script via the UI (double click the file) and via the terminal (/home/pi/scannerapp/start-app.sh). Script…
ti034
  • 191
  • 2
  • 13
0
votes
1 answer

Rqaspberry run a java script on startup and see the cmd?

I have a java code I want to run on startup , but I wnat to be able to see the code running on the CMD.(like when I run the java manually) how do I do this ? this is what I have in the rc.local #!/bin/sh -e # # rc.local # # This script is…
Korenron
  • 101
  • 2
  • 10
0
votes
1 answer

Ubuntu 10.10 rc.local ignores half the command?

I have a java program on autostart in rc.local (in ubuntu its /etc/init.d/rc.local) For some reason in ubuntu on autostart the command to execute java and log its output only half works, while it works as expected in the command line and it also…
Sigtran
  • 329
  • 1
  • 6
  • 15
0
votes
1 answer

Resource File VS2010: Images missing when copying product

I am creating a c++ dll which includes some images in the png format using VS2010. This works fine as long as I keep the dll on my developer machine. When I try to copy the dll to another machine the images are missing. When I compile my project, a…
st-h
  • 2,444
  • 6
  • 37
  • 60
0
votes
0 answers

Shell script isn't echoing result of command as expected

I am trying to write a simple shell script, and one aspect of it involves outputting the result of an lsrc command. If you aren't familiar with lsrc, look here rcm Here is essentially what I am trying: #!/bin/bash output=$(lsrc) echo "$output" all…
Zach
  • 4,555
  • 9
  • 31
  • 52
0
votes
1 answer

How to determine the root directory of a project for config/rc files

I'm writing a CLI tool in Node and I'd like it to be configurable by a config file when it's used by a consumers project. Pretty similar to how es-lint's .eslintrc or babel .bablerc works. consumer-app node_modules my-cli-tool index.js ←…
Waseem
  • 651
  • 1
  • 5
  • 15
0
votes
1 answer

cat, grep work in rc.local but no in rc5.d

I have a script which I want to run from init.d in Raspberry Pi, I put the script in rc5.d to make it executed when runlevel 5 is being run, with order number of 20. (S20myscript) Inside my script I used cat and grep command. When I reboot the…
Lyn
  • 507
  • 3
  • 15
0
votes
0 answers

Dialog box in resource file

I am trying to create a dialog box and it returns an error in the resource file. I have been trying to execute different types of codes and ever found the issue. It says unknown type IDD_TOOL. What is it that's wrong here? The errors that I get is:…
user7813357
0
votes
1 answer

I have trouble, j = pygame.joystick.Joystick()

My example code from google. #!/usr/bin/env python import pygame from pygame import import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) # Initialise the pygame library pygame.init() # Connect to the first JoyStick16:11:10:05:0B:1C j =…