Skip to main content
added 48 characters in body
Source Link
Tim
  • 106.8k
  • 234
  • 651
  • 1.1k

Is it correct that the output of jobs contains the working directory when invoking each job (not necessarily the current working directory of each job)?

$ jobs -l | grep JDBC
[15]  20422 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/official/tutorials)
[20]  20542 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/wikipedia)

Similarly, in ps, is it possible to get the previous working directory of each process ?when invoking it

In pgrep, is it possible to search in the pathname (string) of the previous working directory of each process when invoking it, like pgrep ... <pattern_in_working_dir_pathname>?

I would like to search for processes, by keywords in their working directories when invoking them

Thanks.

Is it correct that the output of jobs contains the working directory when invoking each job (not necessarily the current working directory of each job)?

$ jobs -l | grep JDBC
[15]  20422 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/official/tutorials)
[20]  20542 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/wikipedia)

Similarly, in ps, is it possible to get the working directory of each process ?

In pgrep, is it possible to search in the pathname (string) of the working directory of each process, like pgrep ... <pattern_in_working_dir_pathname>?

I would like to search for processes, by keywords in their working directories when invoking them

Thanks.

Is it correct that the output of jobs contains the working directory when invoking each job (not necessarily the current working directory of each job)?

$ jobs -l | grep JDBC
[15]  20422 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/official/tutorials)
[20]  20542 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/wikipedia)

Similarly, in ps, is it possible to get the previous working directory of each process when invoking it

In pgrep, is it possible to search in the pathname (string) of the previous working directory of each process when invoking it, like pgrep ... <pattern_in_working_dir_pathname>?

I would like to search for processes, by keywords in their working directories when invoking them

Thanks.

added 152 characters in body
Source Link
Tim
  • 106.8k
  • 234
  • 651
  • 1.1k

Is it correct that the output of jobs contains the working directory when initiatinginvoking each job (not necessarily the commandcurrent working directory of each job)?

$ jobs -l | grep JDBC
[15]  20422 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/official/tutorials)
[20]  20542 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/wikipedia)

Similarly, in ps, is it possible to get the working directory of each process ?

In pgrep, is it possible to search in the pathname (string) of the working directory of each process, like pgrep ... <pattern_in_working_dir_pathname>?

I would like to search for processes, by keywords in their working directories when invoking them

Thanks.

Is it correct that the output of jobs contains the working directory when initiating the command of each job

$ jobs -l | grep JDBC
[15]  20422 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/official/tutorials)
[20]  20542 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/wikipedia)

Similarly, in ps, is it possible to get the working directory of each process ?

In pgrep, is it possible to search in the pathname (string) of the working directory of each process, like pgrep ... <pattern_in_working_dir_pathname>?

Thanks.

Is it correct that the output of jobs contains the working directory when invoking each job (not necessarily the current working directory of each job)?

$ jobs -l | grep JDBC
[15]  20422 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/official/tutorials)
[20]  20542 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/wikipedia)

Similarly, in ps, is it possible to get the working directory of each process ?

In pgrep, is it possible to search in the pathname (string) of the working directory of each process, like pgrep ... <pattern_in_working_dir_pathname>?

I would like to search for processes, by keywords in their working directories when invoking them

Thanks.

added 23 characters in body
Source Link
Tim
  • 106.8k
  • 234
  • 651
  • 1.1k

Is it correct that the output of jobs contains the working directory when initiating the command of each job

$ jobs -l | grep JDBC
[15]  20422 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/official/tutorials)
[20]  20542 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/wikipedia)

Similarly, in ps, is it possible to get the working directory of each process ?

In pgrep, is it possible to search in the pathname (string) of the working directory of each process, like pgrep ... <pattern_in_working_dir_pathname>?

Thanks.

Is it correct that the output of jobs contains the working directory when initiating the command of each job

$ jobs -l | grep JDBC
[15]  20422 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/official/tutorials)
[20]  20542 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/wikipedia)

Similarly, in ps, is it possible to get the working directory of each process ?

In pgrep, is it possible to search in the working directory of each process ?

Thanks.

Is it correct that the output of jobs contains the working directory when initiating the command of each job

$ jobs -l | grep JDBC
[15]  20422 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/official/tutorials)
[20]  20542 Running   PDFXCview all.pdf &  (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/wikipedia)

Similarly, in ps, is it possible to get the working directory of each process ?

In pgrep, is it possible to search in the pathname (string) of the working directory of each process, like pgrep ... <pattern_in_working_dir_pathname>?

Thanks.

Source Link
Tim
  • 106.8k
  • 234
  • 651
  • 1.1k
Loading