File name too long bash

Issue i want to copy some files from ../soft to ../copu_new. The name of that tests are in ../sim/soft.txt. I had en error : cp:cannot stat ‘../soft/file1.txt\file2.txt\file3.txt’: File too long Follow the code below: input="../sim/soft.txt" while read line do ##to

Continue reading

File name too long bash

Issue i want to copy some files from ../soft to ../copu_new. The name of that tests are in ../sim/soft.txt. I had en error : cp:cannot stat ‘../soft/file1.txt\file2.txt\file3.txt’: File too long Follow the code below: input="../sim/soft.txt" while read line do ##to

Continue reading

.cmd vs .ps1 in Path

Issue I have added a folder to my Path that contains a foo.cmd batch file and foo.ps1 powershell script. (The batch file is there to run the powershell script with a bypassed execution policy.) When in powershell/command prompt I run

Continue reading

subprocess popen is returning blanck output

Issue On trying to run the grep for the output of previous command using popen returning blank without any error proc1cmd = "grep " + fetchname1 p1 = subprocess.Popen([‘kubectl’, ‘get’, ‘abr’, ‘-A’], stdout=subprocess.PIPE) p2 = subprocess.Popen(proc1cmd, shell=True, stdin=p1.stdout, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

Continue reading

PSQL database creation from script

Issue I have an issue with automatic database creation. I have created create_database.sql file with following code: BEGIN; \i schema.sql \i domains.sql \i sequences.sql \i tables.sql \i dane/insert_users.sql \i dane/insert_default_expenses.sql \i dane/insert_default_incomes.sql \i dane/insert_default_payments.sql \i dane/insert_user_incomes.sql \i dane/insert_user_expenses.sql \i dane/insert_user_payments.sql

Continue reading