superuser.com

VN:F [1.9.22_1171]
Rating: 7.0/10 (1 vote cast)

Super User is a Q&A site for computer enthusiasts that’s free. Free to ask questions, free to answer questions, free to read, free to index

Execute a remote shell script from within screen via SSH and view stdout in one command

8 May 2024 @ 5:08 pm

Couldn't find an answer for my particular use-case in the hours I've unsuccessfully researched this. I have a script located on machine B. I am aiming to run a command on machine A that establishes an SSH session, runs the script within screen, and shows me the stdout as if I were running the screen command directly on machine B. Hours of trial and error have produced the below command, which has so far produced the best results I've gotten. It seems to successfully start the screen session which I can resume via SSH, but the script does not execute. ssh -f user@machineB 'screen -dm sh /Users/user/Bin/script.sh; exec sh' An alternate iteration of this command (which I did not record) seemed to execute the script, but when I tried to resume the active screen session, screen returned error $TERM too long - sorry. I am running macOS on machines A and B, and using macOS's built-in screen binary. I'd like to stick with nat

In Google sheets, what is the syntax for an indefinite range?

8 May 2024 @ 4:40 pm

I have a question about the Google equivalent of Microsoft Excel. The two products are not exactly equivalent, but the correct English phrase alludes me. Either Google Sheets is a substitute product for Microsoft Excel or vis versa. I often see ranges specified with a large terminating number, such as B3:B299 = SUM(B3:B299) Here, we are summing the values found in column B, rows 3 through 299. Often times, the upper-bound, or largest row number is chosen to be an arbitrary large number, but ends up being insufficiently small as additional data is populated into the sprea

rsync command wher I exclude all and include specifi files

8 May 2024 @ 4:21 pm

I have this in a Jenkinsfile: args=( -avz --delete # Config Files --include="config/captcha_challenge.sql" --include="config/captcha_user.sql" # Libraries --include="lib/**" # Login Files --include="login/**" # App Files --include="index.php" # Other Files --include=".env" --include=".htaccess" # Images already on destination --exclude="background/" --exclude="objects/" --exclude="textures/" --exclude="*" /tmp/WebApp/ /media/storage/WebApp/ ) rsync "${args[@]}" But I can't get it to work Right now I have only background/ objects/ textures/ I've tried moving the exclude=* to the beginning but nothing changes. I've only managed to get index.php .env and

Netlink wakes up my PC?

8 May 2024 @ 4:01 pm

I have activated wakeonlan on my Linux Mint machine, and it works fine. Even too fine, whenever I shut down the machine, it will reboot after anything from 10 secs to 10 minutes. I've activated logging and deactivated some USB devices, and all I can find are netlink events that are responsible for the wakeup. The PC is connected via eth0. These are the entries in syslog: kernel: [ 0.136838] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1]) kernel: [ 0.535922] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 kernel: [ 0.575244] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM egments MSI EDR HPX-Type3] kernel: [ 0.575446] acpi PNP0A08:00: _OSC: platform does not support [SHPCHotplug LTR DPC] kernel: [0.575639] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability] kernel: [ 0.575650] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-7f] only partially covers this bridge

how to connect to computers in the LAN of the server?

8 May 2024 @ 3:54 pm

I would like to can connect from a client to computers in the LAN of the OpenVpn Server. I have read this question, and really it is my problem, but the solution it is configure the router, I would like to configure the OpenVpn server. For that, I am following the documentation. Also I am following this tutorial. But I am not able to cofigure the VPN to can connect to the computers in the LAN of the server. The server is a Windows 11 computer and I am using the WinTun adapter. The VPN is 10.20.0.0 255.255.255.0 and the server i

PowerPoint Crashes Tried Everything I know

8 May 2024 @ 3:40 pm

I have been living with a crashing powerpoint for a long time (Over a year). I'm a midlevel computer tech. Hardware and software. What happens: Upon starting PowerPoint it ether crashes before it opens or within a minute after it starts. Upon restarting PowerPoint I'm prompted to start in safe mode which I do and there is no crash. I close PowerPoint and open it again and it crashes. repeat with safe mode.This is the cycle. What I have done to try and solve this but didn't work: Disabled all add-in's in PowerPoint. Disabled anti-virus/malware/firewall applications. Uninstalled all add-in's application and anti-virus software from the computer. Performed a MS Office 365 repair short and long. Removed MS Office 365, reboot and reinstall. Used CCleaner on temp files and registry. Deleted files in %temp% folder that CCleaner did not. Run virus and malware scans with Vipre Internet security and MalwareBytes.(Note! I do not run two AV programs on my computer at the same time

Running PowerShell Script from Task Scheduler Fails - New-SmbMapping

8 May 2024 @ 3:40 pm

I have a Powershell script that I run on our satellite locations to copy an Access db each day. All nine of our locations had this script running smoothly until I had to edit them recently. Now, if I run the script manually, it runs correctly but when the scheduled task runs it, the task completes but the script returns an error. I have the script starting a transcript while running to troubleshoot this issue. The line producing the error is: New-SmbMapping -LocalPath 'P:' -RemotePath \123.123.123.123\SharedFile$ -Username xxxx -password xxxx Here is the error text: Transcript started, output file is C:\temp\problem-script.txt New-SmbMapping : The local device name has a remembered connection to another network resource. At E:\FOLDER\FOLDER\PS_Script.ps1:5 char:1 New-SmbMapping -LocalPath 'P:' -RemotePath \123.123.123.123\SharedFile$ ... + CategoryInfo : NotSpecified: (MSFT_SmbMapping:ROOT/Microsoft/...MSFT_SmbMapping

How to TEXTJOIN specific no of rows based on constraints?

8 May 2024 @ 3:03 pm

I need to concatenate certain attribute value based on the sequence number for specific material number and a formula to automate the process. I have columns as listed in the below screen shot and I want to get my result as in "Expected Result" column. Expected Result What are all the helper columns I need and how to get my expected values by formula? Some complex Example available in https://docs.google.com/spreadsheets/d/1UohDcgBMZThzG37s0nDpRYbFFRNGeCeV/edit?usp=drive_link&ouid=100858153522202375139&rtpof=true&sd=true

Sharing screen in Teams with fewer steps

8 May 2024 @ 2:58 pm

I am using Microsoft Teams 06.05.2024 (Version 24091.214.2846.1452) on a daily basis. To conduct and moderate a Teams call, my workflow is as follows: Open the Teams appointment Click on the “participate” button (“Jetzt teilnehmen” in German) with video camera activated Maximize the resulting window with my video screen, being the first and yet single participant Open a second window with the meeting minutes on a second screen Hit the “Share” button on the Teams screen and select the meeting minutes screen opened before Step 5. results in my Teams window to be shrunk to 81x66 mm² notification window format at the lower right corner of my main screen. I have to pan and maximize this window to see the full main Teams window again Wait until other participants arrive Etc. …. My question: Can I avoid step 6.?

Libreoffice: Exit mail merge preview mode

8 May 2024 @ 2:30 pm

I have made a mailmerge document. It looks like this: Document with a linked data source When I click > it previews the document with the first element: Document previewing the first element This is great, but how do I go back? I have tried manually entering -1 or 0 in the mail merge element box. I tried leaving it empty. I tried CTRL-Z. None of those work. I have the feeling that clicking > takes me from design mode into preview mode, and I just want to go back. I have the feeling I am missing something obvious that is staring in my face.